fix: use Authenticated component

This commit is contained in:
Derrick Hammer 2024-03-21 15:04:19 -04:00
parent a7ef0b4773
commit 61b70ffa2e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 11 additions and 8 deletions

View File

@ -1,14 +1,16 @@
import { GeneralLayout } from "~/components/general-layout"; import {GeneralLayout} from "~/components/general-layout";
import { FileCard, FileCardList, FileTypes } from "~/components/file-card"; import {FileCard, FileCardList, FileTypes} from "~/components/file-card";
import { DataTable } from "~/components/data-table"; import {DataTable} from "~/components/data-table";
import { columns } from "./columns"; import {columns} from "./columns";
import { Input } from "~/components/ui/input"; 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";
export default function FileManager() { export default function FileManager() {
return ( return (
<GeneralLayout> <Authenticated key="dashboard" v3LegacyAuthProviderCompatible>
<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>
<FileCard <FileCard
@ -57,5 +59,6 @@ export default function FileManager() {
columns={columns} columns={columns}
/> />
</GeneralLayout> </GeneralLayout>
</Authenticated>
); );
} }