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

tried grid

This commit is contained in:
muerwre 2019-08-08 17:21:59 +07:00
parent 10b013f9a8
commit 125a120c85
6 changed files with 25 additions and 17 deletions

View file

@ -17,7 +17,7 @@ const SortableList = SortableContainer(({ items, locked }: { items: IFile[], loc
<div className={styles.grid}>
{
items.map((file, index) => (
<SortableItem key={file.id} index={index}>
<SortableItem key={file.id} index={index} collection={0}>
<ImageUpload
id={file.id}
thumb={file.url}
@ -25,6 +25,17 @@ const SortableList = SortableContainer(({ items, locked }: { items: IFile[], loc
</SortableItem>
))
}
{
locked.map((item, index) => (
<SortableItem key={item.temp_id} index={index} collection={1} disabled>
<ImageUpload
thumb={item.preview}
progress={item.progress}
is_uploading
/>
</SortableItem>
))
}
<div style={{ clear: 'both' }} />
</div>
);