Compare commits

...

4 Commits

Author SHA1 Message Date
Juan Di Toro 9d9aa4e9c9 feat: add pinning modal 2024-03-22 12:31:31 +01:00
Juan Di Toro db91cb9590 Merge branch 'develop' of git.lumeweb.com:LumeWeb/portal-dashboard into develop 2024-03-22 11:43:16 +01:00
Juan Di Toro 43a0ab0b29 Merge branch 'develop' of git.lumeweb.com:LumeWeb/portal-dashboard into develop 2024-03-20 20:05:13 +01:00
Juan Di Toro c291434881 fix: wrong login schema 2024-03-19 15:40:12 +01:00
3 changed files with 86 additions and 61 deletions

View File

@ -6,10 +6,19 @@ 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>
@ -50,15 +59,31 @@ export default function FileManager() {
<AddIcon />
Select All
</Button>
<DialogTrigger asChild>
<Button className="h-12 gap-x-2">
<AddIcon />
New Folder
Pin Content
</Button>
</DialogTrigger>
</div>
<DataTable
columns={columns}
/>
<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" }}
/>
<Button type="submit" className="w-full">
Pin Content
</Button>
</form>
</DialogContent>
</Dialog>
</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(),
rememberMe: z.boolean().optional(),
});
const LoginForm = () => {