Updated the Manage.jsx
This commit is contained in:
parent
15780c41d4
commit
5c87062b96
@ -1,14 +1,19 @@
|
|||||||
import {Navigate} from "react-router-dom";
|
import {Navigate, useOutlet} from "react-router-dom";
|
||||||
|
import Header from "@/states/Manage/components/Header";
|
||||||
|
|
||||||
export const Manage = () => {
|
export const Manage = () => {
|
||||||
|
|
||||||
|
const outlet = useOutlet();
|
||||||
|
|
||||||
if (!localStorage.getItem("token")) {
|
if (!localStorage.getItem("token")) {
|
||||||
return <Navigate to="/auth"/>;
|
return <Navigate to="/auth"/>;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<p style={{margin: 0}}>manage</p>
|
<Header title="Manage"/>
|
||||||
|
|
||||||
|
{outlet}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user