Merge pull request #1832 from automatisch/align-404-page-center

fix: align 404 page content to the center
This commit is contained in:
Ali BARIN
2024-04-26 14:22:26 +02:00
committed by GitHub
4 changed files with 11 additions and 3 deletions

View File

@@ -113,7 +113,12 @@ export default function PublicLayout({ children }) {
onDrawerClose={closeDrawer}
/>
<Box sx={{ display: 'flex', height: '100%' }}>
<Box
sx={{
display: 'flex',
flex: 1,
}}
>
<Drawer
links={drawerLinks}
bottomLinks={bottomLinks}

View File

@@ -7,6 +7,7 @@ import useFormatMessage from 'hooks/useFormatMessage';
import useAuthentication from 'hooks/useAuthentication';
import Layout from 'components/Layout';
import PublicLayout from 'components/PublicLayout';
export default function NoResultFound() {
const formatMessage = useFormatMessage();
const { isAuthenticated } = useAuthentication();
@@ -32,6 +33,7 @@ export default function NoResultFound() {
</Link>
</Stack>
);
return isAuthenticated ? (
<Layout>{pageContent}</Layout>
) : (

View File

@@ -21,8 +21,7 @@ function Layout({ children }) {
sx={{
display: 'flex',
flexDirection: 'column',
height: '100%',
minHeight: '100vh',
flex: 1,
}}
>
<Toolbar />