diff --git a/awx/ui_next/src/components/AppContainer/AppContainer.jsx b/awx/ui_next/src/components/AppContainer/AppContainer.jsx index 87559924ff..7250bb4352 100644 --- a/awx/ui_next/src/components/AppContainer/AppContainer.jsx +++ b/awx/ui_next/src/components/AppContainer/AppContainer.jsx @@ -1,6 +1,5 @@ import React, { useEffect, useState } from 'react'; import { useHistory, useLocation, withRouter } from 'react-router-dom'; -import { global_breakpoint_md } from '@patternfly/react-tokens'; import { Nav, NavList, @@ -41,15 +40,10 @@ function AppContainer({ i18n, navRouteConfig = [], children }) { const [config, setConfig] = useState({}); const [configError, setConfigError] = useState(null); const [isAboutModalOpen, setIsAboutModalOpen] = useState(false); - const [isNavOpen, setIsNavOpen] = useState( - typeof window !== 'undefined' && - window.innerWidth >= parseInt(global_breakpoint_md.value, 10) - ); const handleAboutModalOpen = () => setIsAboutModalOpen(true); const handleAboutModalClose = () => setIsAboutModalOpen(false); const handleConfigErrorClose = () => setConfigError(null); - const handleNavToggle = () => setIsNavOpen(!isNavOpen); const handleLogout = async () => { await RootAPI.logout(); @@ -79,7 +73,6 @@ function AppContainer({ i18n, navRouteConfig = [], children }) { const header = ( } logoProps={{ href: '/' }} headerTools={ @@ -95,7 +88,6 @@ function AppContainer({ i18n, navRouteConfig = [], children }) { const sidebar = ( @@ -116,7 +108,7 @@ function AppContainer({ i18n, navRouteConfig = [], children }) { return ( <> - + {children}