import React from 'react'; import { Outlet } from 'react-router-dom'; import { useSelector } from 'react-redux'; import { makeStyles, LinearProgress, useMediaQuery } from '@material-ui/core'; import theme from './common/theme'; import BottomMenu from './common/components/BottomMenu'; const useStyles = makeStyles(() => ({ page: { flexGrow: 1, overflow: 'auto', }, menu: { zIndex: 1204, }, })); const App = () => { const classes = useStyles(); const desktop = useMediaQuery(theme.breakpoints.up('md')); const initialized = useSelector((state) => !!state.session.server && !!state.session.user); if (!initialized) { return (); } return ( <>
{!desktop && (
)} ); }; export default App;