diff --git a/resources/scripts/routers/ServerRouter.tsx b/resources/scripts/routers/ServerRouter.tsx index feffab6..dff6a53 100644 --- a/resources/scripts/routers/ServerRouter.tsx +++ b/resources/scripts/routers/ServerRouter.tsx @@ -13,7 +13,6 @@ import SubNavigation from '@/components/elements/SubNavigation'; import InstallListener from '@/components/server/InstallListener'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons'; -import { useLocation } from 'react-router'; import { NavigationLinks, NavigationRouter } from '@/blueprint/extends/routers/ServerRouter'; import BeforeSubNavigation from '@/blueprint/components/Navigation/SubNavigation/BeforeSubNavigation'; @@ -22,14 +21,12 @@ import AfterSubNavigation from '@/blueprint/components/Naviga export default () => { const match = useRouteMatch<{ id: string }>(); - const location = useLocation(); const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin); const [error, setError] = useState(''); const id = ServerContext.useStoreState((state) => state.server.data?.id); const uuid = ServerContext.useStoreState((state) => state.server.data?.uuid); - const inConflictState = ServerContext.useStoreState((state) => state.server.inConflictState); const serverId = ServerContext.useStoreState((state) => state.server.data?.internalId); const getServer = ServerContext.useStoreActions((actions) => actions.server.getServer); const clearServerState = ServerContext.useStoreActions((actions) => actions.clearServerState);