Compare commits

..

No commits in common. "9d9aa4e9c9a4e4a1683a897b9b9966065ed4fa4a" and "364f2b048b6edf7f4fee5d4a32c1384e62d23cf8" have entirely different histories.

3 changed files with 61 additions and 86 deletions

View File

@ -6,19 +6,10 @@ 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 (
<Authenticated key="dashboard" v3LegacyAuthProviderCompatible>
<Dialog>
<GeneralLayout>
<h1 className="font-bold mb-4 text-lg">File Manager</h1>
<FileCardList>
@ -59,31 +50,15 @@ export default function FileManager() {
<AddIcon />
Select All
</Button>
<DialogTrigger asChild>
<Button className="h-12 gap-x-2">
<AddIcon />
Pin Content
New Folder
</Button>
</DialogTrigger>
</div>
<DataTable columns={columns} />
</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" }}
<DataTable
columns={columns}
/>
<Button type="submit" className="w-full">
Pin Content
</Button>
</form>
</DialogContent>
</Dialog>
</GeneralLayout>
</Authenticated>
);
}

View File

@ -96,7 +96,7 @@ export default function Login() {
const LoginSchema = z.object({
email: z.string().email(),
password: z.string(),
rememberMe: z.boolean().optional(),
rememberMe: z.boolean(),
});
const LoginForm = () => {