Add sidebar base logic

This commit is contained in:
Angelillo15 2023-07-09 03:02:17 +02:00
parent 6d8f76dec5
commit 37b9ef5585
5 changed files with 163 additions and 1 deletions

View file

@ -8,6 +8,7 @@ import SubNavigation from '@/components/elements/SubNavigation';
import { useLocation } from 'react-router';
import Spinner from '@/components/elements/Spinner';
import routes from '@/routers/routes';
import Sidebar from '@/components/Sidebar';
export default () => {
const location = useLocation();
@ -28,6 +29,9 @@ export default () => {
</div>
</SubNavigation>
)}
<Sidebar />
<TransitionRouter>
<React.Suspense fallback={<Spinner centered />}>
<Switch location={location}>