fix: open folder onRowClick

This commit is contained in:
diced 2023-03-21 19:53:59 -07:00
parent a81f797266
commit e7cf44e8e9
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

View file

@ -293,6 +293,10 @@ export default function Folders({ disableMediaPreview, exifEnabled, compress })
},
],
}}
onRowClick={(folder) => {
setViewOpen(true);
setActiveFolderId(folder.id);
}}
/>
) : (
<SimpleGrid cols={3} spacing='lg' breakpoints={[{ maxWidth: 'sm', cols: 1, spacing: 'sm' }]}>