This commit is contained in:
Mo Tarbin 2025-02-15 00:05:12 -05:00
commit 2162b8c22d
2 changed files with 72 additions and 5 deletions

View file

@ -1,10 +1,77 @@
import { Typography } from '@mui/joy' import { HomeRounded, Login } from '@mui/icons-material'
import {
Box,
Button,
CircularProgress,
Container,
Textarea,
Typography,
} from '@mui/joy'
import { Link } from 'react-router-dom'
import Logo from '../Logo' // Adjust the import path as necessary
const Error = () => { const Error = () => {
return ( return (
<div className='grid min-h-screen place-items-center'> <Container className='flex h-full items-center justify-center'>
<Typography level='h1'>404</Typography> <Box
</div> className='flex flex-col items-center justify-center'
sx={{
minHeight: '80vh',
}}
>
<CircularProgress
value={100}
color='danger' // Set the color to 'error' for danger color
sx={{ '--CircularProgress-size': '200px' }}
>
<Logo />
</CircularProgress>
<Box
className='flex items-center gap-2'
sx={{
fontWeight: 700,
fontSize: 24,
mt: 2,
}}
>
Ops, something went wrong
</Box>
<Typography level='body-md' fontWeight={500} textAlign={'center'}>
if you think this is a mistake, please contact us or{' '}
<a
href='https://github.com/donetick/donetick/issues/new'
style={{
textDecoration: 'underline',
}}
>
open issue here
</a>{' '}
</Typography>
<Button
component={Link}
to='/my/chores'
variant='outlined'
color='primary'
sx={{ mt: 4 }}
size='lg'
startDecorator={<HomeRounded />}
>
Home
</Button>
<Button
component={Link}
to='/login'
variant='outlined'
color='primary'
sx={{ mt: 1 }}
size='lg'
startDecorator={<Login />}
>
Login
</Button>
</Box>
</Container>
) )
} }

View file

@ -319,7 +319,7 @@ const Settings = () => {
Join Circle Join Circle
</Button> </Button>
</Typography> </Typography>
{circleMembers.find(m => userProfile.id == m.userId).role === {circleMembers.find(m => userProfile.id == m.userId)?.role ===
'admin' && ( 'admin' && (
<> <>
<Typography level='title-lg' mt={2}> <Typography level='title-lg' mt={2}>