-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-advanced-search-error
- Loading branch information
Showing
11 changed files
with
121 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { Typography, Button, Stack } from '@mui/material'; | ||
import { Link, useRouteError } from 'react-router-dom'; | ||
|
||
export const ErrorPage = () => { | ||
const error = useRouteError(); | ||
|
||
return ( | ||
<Stack | ||
spacing={3} | ||
sx={{ | ||
padding: '1rem', | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
flexDirection: 'column', | ||
height: '100vh', | ||
gap: 2, | ||
}} | ||
> | ||
<Typography variant="h3" component="h1"> | ||
Oops! Something went wrong. | ||
</Typography> | ||
<Stack spacing={2} sx={{ textAlign: 'center' }}> | ||
<Typography variant="h5" component="p"> | ||
This error may be caused by your browser having an out of date version of AntAlmanac. | ||
</Typography> | ||
<Typography variant="h5" component="p"> | ||
Try refreshing the page. If the error persists, please submit a{' '} | ||
<Link to="https://forms.gle/k81f2aNdpdQYeKK8A">bug report</Link> with the provided error. | ||
</Typography> | ||
</Stack> | ||
<Link to="/"> | ||
<Button variant="contained" size="large"> | ||
Back to Home | ||
</Button> | ||
</Link> | ||
<details open> | ||
<summary>View Error Message</summary> | ||
<p>{error instanceof Error && <pre>{error.stack}</pre>}</p> | ||
</details> | ||
</Stack> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { create } from 'zustand'; | ||
|
||
interface ScheduleManagementStore { | ||
scheduleManagementWidth: number | null; | ||
setScheduleManagementWidth: (width: number) => void; | ||
} | ||
|
||
export const useScheduleManagementStore = create<ScheduleManagementStore>((set) => ({ | ||
scheduleManagementWidth: null, | ||
setScheduleManagementWidth: (width) => set({ scheduleManagementWidth: width }), | ||
})); |