feat: add pinning modal
This commit is contained in:
parent
db91cb9590
commit
9d9aa4e9c9
|
@ -6,10 +6,19 @@ import {Input} from "~/components/ui/input";
|
||||||
import { Button } from "~/components/ui/button";
|
import { Button } from "~/components/ui/button";
|
||||||
import { AddIcon } from "~/components/icons";
|
import { AddIcon } from "~/components/icons";
|
||||||
import { Authenticated } from "@refinedev/core";
|
import { Authenticated } from "@refinedev/core";
|
||||||
|
import {
|
||||||
|
Dialog,
|
||||||
|
DialogContent,
|
||||||
|
DialogHeader,
|
||||||
|
DialogTitle,
|
||||||
|
DialogTrigger,
|
||||||
|
} from "~/components/ui/dialog";
|
||||||
|
import { Field } from "~/components/forms";
|
||||||
|
|
||||||
export default function FileManager() {
|
export default function FileManager() {
|
||||||
return (
|
return (
|
||||||
<Authenticated key="dashboard" v3LegacyAuthProviderCompatible>
|
<Authenticated key="dashboard" v3LegacyAuthProviderCompatible>
|
||||||
|
<Dialog>
|
||||||
<GeneralLayout>
|
<GeneralLayout>
|
||||||
<h1 className="font-bold mb-4 text-lg">File Manager</h1>
|
<h1 className="font-bold mb-4 text-lg">File Manager</h1>
|
||||||
<FileCardList>
|
<FileCardList>
|
||||||
|
@ -50,15 +59,31 @@ export default function FileManager() {
|
||||||
<AddIcon />
|
<AddIcon />
|
||||||
Select All
|
Select All
|
||||||
</Button>
|
</Button>
|
||||||
|
<DialogTrigger asChild>
|
||||||
<Button className="h-12 gap-x-2">
|
<Button className="h-12 gap-x-2">
|
||||||
<AddIcon />
|
<AddIcon />
|
||||||
New Folder
|
Pin Content
|
||||||
</Button>
|
</Button>
|
||||||
|
</DialogTrigger>
|
||||||
</div>
|
</div>
|
||||||
<DataTable
|
<DataTable columns={columns} />
|
||||||
columns={columns}
|
|
||||||
/>
|
|
||||||
</GeneralLayout>
|
</GeneralLayout>
|
||||||
|
<DialogHeader>
|
||||||
|
<DialogTitle>Pinning Contnet</DialogTitle>
|
||||||
|
</DialogHeader>
|
||||||
|
<DialogContent>
|
||||||
|
<form action="" className="w-full flex flex-col gap-y-4">
|
||||||
|
<Field
|
||||||
|
inputProps={{ name: "cids", placeholder: "Comma separated CIDs" }}
|
||||||
|
labelProps={{ htmlFor: "cids", children: "Content to Pin" }}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Button type="submit" className="w-full">
|
||||||
|
Pin Content
|
||||||
|
</Button>
|
||||||
|
</form>
|
||||||
|
</DialogContent>
|
||||||
|
</Dialog>
|
||||||
</Authenticated>
|
</Authenticated>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue