mirror of
https://github.com/diced/zipline.git
synced 2025-12-20 14:22:48 -08:00
fix: formatting errors
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { Response } from '@/lib/api/response';
|
||||
import type { Prisma } from '@prisma/client';
|
||||
import useSWR from 'swr';
|
||||
|
||||
type ApiPaginationOptions = {
|
||||
|
||||
@@ -14,10 +14,9 @@ import {
|
||||
import { IconFileUpload, IconFilesOff } from '@tabler/icons-react';
|
||||
import dynamic from 'next/dynamic';
|
||||
import Link from 'next/link';
|
||||
import { useRouter } from 'next/router';
|
||||
import { parseAsInteger, useQueryState } from 'nuqs';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useApiPagination } from '../useApiPagination';
|
||||
import { parseAsInteger, useQueryState } from 'nuqs';
|
||||
|
||||
const DashboardFile = dynamic(() => import('@/components/file/DashboardFile'), {
|
||||
loading: () => <Skeleton height={350} animate />,
|
||||
@@ -26,8 +25,6 @@ const DashboardFile = dynamic(() => import('@/components/file/DashboardFile'), {
|
||||
const PER_PAGE_OPTIONS = [9, 12, 15, 30, 45];
|
||||
|
||||
export default function Files({ id }: { id?: string }) {
|
||||
const router = useRouter();
|
||||
|
||||
const [page, setPage] = useQueryState('page', parseAsInteger.withDefault(1));
|
||||
const [perpage, setPerpage] = useState<number>(15);
|
||||
const [cachedPages, setCachedPages] = useState<number>(1);
|
||||
|
||||
@@ -7,11 +7,10 @@ import { ActionIcon, Button, Group, Modal, Stack, Switch, TextInput, Title, Tool
|
||||
import { useForm } from '@mantine/form';
|
||||
import { notifications } from '@mantine/notifications';
|
||||
import { IconFolderPlus, IconPlus } from '@tabler/icons-react';
|
||||
import { useState } from 'react';
|
||||
import { parseAsBoolean, useQueryState } from 'nuqs';
|
||||
import { mutate } from 'swr';
|
||||
import FolderGridView from './views/FolderGridView';
|
||||
import FolderTableView from './views/FolderTableView';
|
||||
import { parseAsBoolean, useQueryState } from 'nuqs';
|
||||
|
||||
export default function DashboardFolders() {
|
||||
const view = useViewStore((state) => state.folders);
|
||||
|
||||
@@ -2,7 +2,6 @@ import GridTableSwitcher from '@/components/GridTableSwitcher';
|
||||
import { useViewStore } from '@/lib/store/view';
|
||||
import { ActionIcon, Button, Group, Modal, NumberInput, Select, Stack, Title, Tooltip } from '@mantine/core';
|
||||
import { IconPlus, IconTagOff } from '@tabler/icons-react';
|
||||
import { useState } from 'react';
|
||||
import InviteGridView from './views/InviteGridView';
|
||||
import InviteTableView from './views/InviteTableView';
|
||||
import { useForm } from '@mantine/form';
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useState } from 'react';
|
||||
import KaTeX from './KaTeX';
|
||||
import Markdown from './Markdown';
|
||||
import HighlightCode from './code/HighlightCode';
|
||||
import { parseAsStringEnum, parseAsStringLiteral, useQueryState } from 'nuqs';
|
||||
import { parseAsStringEnum, useQueryState } from 'nuqs';
|
||||
|
||||
export function RenderAlert({
|
||||
renderer,
|
||||
|
||||
Reference in New Issue
Block a user