From d97f0863730c9f226037e248f701c4615b1fe0b2 Mon Sep 17 00:00:00 2001 From: Angelillo15 Date: Sun, 28 Jul 2024 01:55:15 +0200 Subject: [PATCH] ui: Remove collapsable from sidebar --- resources/scripts/routers/AdminRouter.tsx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/resources/scripts/routers/AdminRouter.tsx b/resources/scripts/routers/AdminRouter.tsx index 4f918a06e..f798447ce 100644 --- a/resources/scripts/routers/AdminRouter.tsx +++ b/resources/scripts/routers/AdminRouter.tsx @@ -12,11 +12,9 @@ import { ViewGridIcon, } from '@heroicons/react/outline'; import { useStoreState } from 'easy-peasy'; -import { useState } from 'react'; import { NavLink, Route, Routes } from 'react-router-dom'; import tw from 'twin.macro'; -import CollapsedIcon from '@/assets/images/pterodactyl.svg'; import OverviewContainer from '@/components/admin/overview/OverviewContainer'; import SettingsContainer from '@/components/admin/settings/SettingsContainer'; import DatabasesContainer from '@/components/admin/databases/DatabasesContainer'; @@ -53,21 +51,13 @@ function AdminRouter() { const avatarURL = useStoreState((state: ApplicationStore) => state.user.data!.avatarURL); const applicationName = useStoreState((state: ApplicationStore) => state.settings.data!.name); - // const [collapsed, setCollapsed] = useUserPersistedState('admin_sidebar_collapsed', false); - const [collapsed, setCollapsed] = useState(false); - return (
- +
setCollapsed(!collapsed)} > - {!collapsed ? ( -

{applicationName}

- ) : ( - {'Pterodactyl - )} +

{applicationName}

Administration