diff --git a/src/app/@file.grid.tsx b/src/app/@file.grid.tsx index ac5d9ba..7359d8b 100644 --- a/src/app/@file.grid.tsx +++ b/src/app/@file.grid.tsx @@ -2,6 +2,7 @@ import Link from "next/link"; import { usePathname } from "next/navigation"; +import nProgress from "nprogress"; import { useMemo, useState } from "react"; import toast from "react-hot-toast"; import { z } from "zod"; @@ -38,8 +39,9 @@ import { CreateDownloadToken } from "./actions"; type Props = { data: z.infer; + disabled?: boolean; }; -export default function FileGrid({ data }: Props) { +export default function FileGrid({ data, disabled }: Props) { const pathname = usePathname(); const filePath = useMemo(() => { // const currentPath = pathname.startsWith("/e") ? pathname : `/e${pathname}`; @@ -120,7 +122,10 @@ export default function FileGrid({ data }: Props) { - + {data.mimeType.includes("folder") ? null : ( - +
- - + {data.mimeType.includes("folder") ? null : ( - +
- + + + + + + + + + + + Title + Description + + + Content + Footer + + + + + +