fix: a bunch of random stuff

This commit is contained in:
diced 2024-12-20 00:07:33 -08:00
parent dcb4a4e9e7
commit 12fcff1a14
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1
82 changed files with 9015 additions and 5875 deletions

View file

@ -1,10 +1,14 @@
import DashboardFile from '@/components/file/DashboardFile';
import { Button, Center, Group, Pagination, Paper, SimpleGrid, Skeleton, Stack, Title } from '@mantine/core';
import { IconFileUpload, IconFilesOff } from '@tabler/icons-react';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { useEffect, useState } from 'react';
import { useApiPagination } from '../useApiPagination';
import dynamic from 'next/dynamic';
const DashboardFile = dynamic(() => import('@/components/file/DashboardFile'), {
loading: () => <Skeleton height={350} animate />,
});
export default function Files({ id }: { id?: string }) {
const router = useRouter();
@ -35,7 +39,7 @@ export default function Files({ id }: { id?: string }) {
cols={{
base: 1,
md: 2,
lg: (data?.page.length ?? 0 > 0) ? 3 : 1,
lg: (data?.page.length ?? 0 > 0) || isLoading ? 3 : 1,
}}
spacing='md'
pos='relative'