Add sidebar base logic
This commit is contained in:
parent
6d8f76dec5
commit
37b9ef5585
5 changed files with 163 additions and 1 deletions
|
@ -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}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue