fix: align 404 page content to the center
This commit is contained in:
@@ -113,7 +113,12 @@ export default function PublicLayout({ children }) {
|
|||||||
onDrawerClose={closeDrawer}
|
onDrawerClose={closeDrawer}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Box sx={{ display: 'flex', height: '100%' }}>
|
<Box
|
||||||
|
sx={{
|
||||||
|
display: 'flex',
|
||||||
|
flex: 1,
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Drawer
|
<Drawer
|
||||||
links={drawerLinks}
|
links={drawerLinks}
|
||||||
bottomLinks={bottomLinks}
|
bottomLinks={bottomLinks}
|
||||||
|
@@ -7,6 +7,7 @@ import useFormatMessage from 'hooks/useFormatMessage';
|
|||||||
import useAuthentication from 'hooks/useAuthentication';
|
import useAuthentication from 'hooks/useAuthentication';
|
||||||
import Layout from 'components/Layout';
|
import Layout from 'components/Layout';
|
||||||
import PublicLayout from 'components/PublicLayout';
|
import PublicLayout from 'components/PublicLayout';
|
||||||
|
|
||||||
export default function NoResultFound() {
|
export default function NoResultFound() {
|
||||||
const formatMessage = useFormatMessage();
|
const formatMessage = useFormatMessage();
|
||||||
const { isAuthenticated } = useAuthentication();
|
const { isAuthenticated } = useAuthentication();
|
||||||
@@ -32,6 +33,7 @@ export default function NoResultFound() {
|
|||||||
</Link>
|
</Link>
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
|
|
||||||
return isAuthenticated ? (
|
return isAuthenticated ? (
|
||||||
<Layout>{pageContent}</Layout>
|
<Layout>{pageContent}</Layout>
|
||||||
) : (
|
) : (
|
||||||
|
@@ -21,8 +21,7 @@ function Layout({ children }) {
|
|||||||
sx={{
|
sx={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
height: '100%',
|
flex: 1,
|
||||||
minHeight: '100vh',
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Toolbar />
|
<Toolbar />
|
||||||
|
@@ -226,6 +226,8 @@ export const defaultTheme = createTheme({
|
|||||||
},
|
},
|
||||||
'#root': {
|
'#root': {
|
||||||
minHeight: '100vh',
|
minHeight: '100vh',
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user