From 9d9aa4e9c9a4e4a1683a897b9b9966065ed4fa4a Mon Sep 17 00:00:00 2001 From: Juan Di Toro Date: Fri, 22 Mar 2024 12:31:31 +0100 Subject: [PATCH] feat: add pinning modal --- app/components/forms.tsx | 2 +- app/routes/file-manager/index.tsx | 143 ++++++++++++++++++------------ 2 files changed, 85 insertions(+), 60 deletions(-) diff --git a/app/components/forms.tsx b/app/components/forms.tsx index faaa14d..814adae 100644 --- a/app/components/forms.tsx +++ b/app/components/forms.tsx @@ -58,7 +58,7 @@ export const FieldCheckbox = ({ const input = useInputControl({ key, name: inputProps.name, - formId: inputProps.form, + formId: inputProps.form, initialValue: defaultChecked ? checkedValue : undefined }) const fallbackId = useId() diff --git a/app/routes/file-manager/index.tsx b/app/routes/file-manager/index.tsx index 31e3a3a..19bb1b4 100644 --- a/app/routes/file-manager/index.tsx +++ b/app/routes/file-manager/index.tsx @@ -1,64 +1,89 @@ -import {GeneralLayout} from "~/components/general-layout"; -import {FileCard, FileCardList, FileTypes} from "~/components/file-card"; -import {DataTable} from "~/components/data-table"; -import {columns} from "./columns"; -import {Input} from "~/components/ui/input"; -import {Button} from "~/components/ui/button"; -import {AddIcon} from "~/components/icons"; -import {Authenticated} from "@refinedev/core"; +import { GeneralLayout } from "~/components/general-layout"; +import { FileCard, FileCardList, FileTypes } from "~/components/file-card"; +import { DataTable } from "~/components/data-table"; +import { columns } from "./columns"; +import { Input } from "~/components/ui/input"; +import { Button } from "~/components/ui/button"; +import { AddIcon } from "~/components/icons"; +import { Authenticated } from "@refinedev/core"; +import { + Dialog, + DialogContent, + DialogHeader, + DialogTitle, + DialogTrigger, +} from "~/components/ui/dialog"; +import { Field } from "~/components/forms"; export default function FileManager() { return ( - - -

File Manager

- - - - - - -

Files

-
- } - placeholder="Search files by name or CID" - className="border-ring font-medium w-full grow h-12 flex-1 bg-primary-2/10" - /> - - -
- -
-
+ + + +

File Manager

+ + + + + + +

Files

+
+ } + placeholder="Search files by name or CID" + className="border-ring font-medium w-full grow h-12 flex-1 bg-primary-2/10" + /> + + + + +
+ +
+ + Pinning Contnet + + +
+ + + + +
+
+
); }