1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

better image thumbs on comments

This commit is contained in:
Fedor Katurov 2019-10-09 19:40:17 +07:00
parent 4ed2957cb4
commit a6434399ba
4 changed files with 17 additions and 4 deletions

View file

@ -27,7 +27,9 @@ const Comment: FC<IProps> = ({ comment, is_empty, is_loading, className, photo,
{comment.files && comment.files.length > 0 && (
<div className={styles.images}>
{comment.files.map(file => (
<ImageUpload thumb={getURL(file.url)} />
<div>
<img src={getURL(file.url)} />
</div>
))}
</div>
)}