feat: 404 page redirect with toast added
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Layout } from '@/components';
|
||||
import { NavigateWithToast } from '@/components/NavigateWithToast';
|
||||
import { AccountCreatedPage } from '@/features/authorization/routes/AccountCreatedPage';
|
||||
import {
|
||||
Calendar,
|
||||
@@ -65,6 +66,17 @@ export interface RouteConfig {
|
||||
|
||||
// can lazy load component if needed (ex. lazy(() => import('@/features/home/routes/HomePage'));)
|
||||
export const appRoutes: RouteConfig[] = [
|
||||
{
|
||||
path: '*',
|
||||
element: (
|
||||
<NavigateWithToast
|
||||
to="/setting/profile"
|
||||
replace
|
||||
message="messages.pageNotFound"
|
||||
severity="error"
|
||||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
element: <Navigate to="/setting/profile" replace />,
|
||||
|
||||
Reference in New Issue
Block a user