File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ import { QueryErrorResetBoundary } from '@tanstack/react-query';
55import { Suspense } from 'react' ;
66import { ErrorBoundary } from 'react-error-boundary' ;
77import Loading from '../pages/Loading.tsx' ;
8- import Error from '../pages/Error .tsx' ;
8+ import Server500Error from '../pages/Server500Error .tsx' ;
99
1010const ProtectedLayout = ( ) => {
1111 const location = useLocation ( ) ;
1212 const isSettingRoute = location . pathname . startsWith ( '/workspace/setting' ) ;
1313 return (
1414 < QueryErrorResetBoundary >
1515 { ( { reset } ) => (
16- < ErrorBoundary onReset = { reset } FallbackComponent = { Error } >
16+ < ErrorBoundary onReset = { reset } FallbackComponent = { Server500Error } >
1717 < Suspense fallback = { < Loading /> } >
1818 < div className = "flex h-screen" >
1919 < aside className = "overflow-auto sidebar-scroll" >
Original file line number Diff line number Diff line change 11import { Outlet } from 'react-router-dom' ;
22import { QueryErrorResetBoundary } from '@tanstack/react-query' ;
33import { ErrorBoundary } from 'react-error-boundary' ;
4- import Error from '../pages/Error .tsx' ;
4+ import Server500Error from '../pages/Server500Error .tsx' ;
55import { Suspense } from 'react' ;
66import Loading from '../pages/Loading.tsx' ;
77
88const PublicLayout = ( ) => {
99 return (
1010 < QueryErrorResetBoundary >
1111 { ( { reset } ) => (
12- < ErrorBoundary onReset = { reset } FallbackComponent = { Error } >
12+ < ErrorBoundary onReset = { reset } FallbackComponent = { Server500Error } >
1313 < Suspense fallback = { < Loading /> } >
1414 < main className = "w-full h-screen overflow-auto basic-scroll bg-gray-onboard" >
1515 < div className = "min-w-max min-h-screen flex flex-col items-center justify-center" >
Original file line number Diff line number Diff line change 11import { useNavigate } from 'react-router-dom' ;
22import PrimaryButton from '../components/Onboarding/PrimaryButton.tsx' ;
33
4- const Error = ( ) => {
4+ const Server500Error = ( ) => {
55 const navigate = useNavigate ( ) ;
66
77 return (
@@ -30,4 +30,4 @@ const Error = () => {
3030 ) ;
3131} ;
3232
33- export default Error ;
33+ export default Server500Error ;
You can’t perform that action at this time.
0 commit comments