diff --git a/resources/scripts/routers/ServerRouter.tsx b/resources/scripts/routers/ServerRouter.tsx index 375aa1d40..321c14e8a 100644 --- a/resources/scripts/routers/ServerRouter.tsx +++ b/resources/scripts/routers/ServerRouter.tsx @@ -68,6 +68,7 @@ interface Nest { export default () => { const params = useParams<'id'>(); const location = useLocation(); + const [isSidebarVisible, setSidebarVisible] = useState(false); const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin); const [error, setError] = useState(''); @@ -80,6 +81,11 @@ export default () => { const clearServerState = ServerContext.useStoreActions((actions) => actions.clearServerState); const egg_id = ServerContext.useStoreState((state) => state.server.data?.egg); const [nests, setNests] = useState(); + + const toggleSidebar = () => { + setSidebarVisible(!isSidebarVisible); + }; + const egg_name = nests && nests @@ -206,9 +212,32 @@ export default () => { ) : null ) : ( <> - + + +
{ }} />
{ />
- {/*

- Panel -

*/}
+