feat: link to view gallery (icon)

This commit is contained in:
diced 2023-03-21 16:36:47 -07:00
parent 8a2064e09d
commit 8b540bff62
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

View file

@ -4,6 +4,7 @@ import { showNotification } from '@mantine/notifications';
import {
IconClipboardCopy,
IconExternalLink,
IconGridDots,
IconPhotoCancel,
IconPhotoMinus,
IconPhotoUp,
@ -16,6 +17,7 @@ import { useStats } from 'lib/queries/stats';
import { userSelector } from 'lib/recoil/user';
import { bytesToHuman } from 'lib/utils/bytes';
import { DataTable, DataTableSortStatus } from 'mantine-datatable';
import Link from 'next/link';
import { useEffect, useState } from 'react';
import { useRecoilValue } from 'recoil';
import RecentFiles from './RecentFiles';
@ -151,7 +153,14 @@ export default function Dashboard({ disableMediaPreview, exifEnabled, compress }
<RecentFiles disableMediaPreview={disableMediaPreview} exifEnabled={exifEnabled} compress={compress} />
<Box my='sm'>
<Group mb='md'>
<Title>Files</Title>
<Tooltip label='View Gallery'>
<ActionIcon variant='filled' color='primary' component={Link} href='/dashboard/files'>
<IconGridDots size='1rem' />
</ActionIcon>
</Tooltip>
</Group>
<DataTable
withBorder