fix: use Authenticated component
This commit is contained in:
parent
a7ef0b4773
commit
61b70ffa2e
|
@ -5,9 +5,11 @@ 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 (
|
||||||
|
<Authenticated key="dashboard" v3LegacyAuthProviderCompatible>
|
||||||
<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>
|
||||||
|
@ -57,5 +59,6 @@ export default function FileManager() {
|
||||||
columns={columns}
|
columns={columns}
|
||||||
/>
|
/>
|
||||||
</GeneralLayout>
|
</GeneralLayout>
|
||||||
|
</Authenticated>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue