Add Custom 404 to allow navigating back to login

This commit is contained in:
Mo Tarbin 2025-02-11 20:46:27 -05:00
parent 96c4d7e903
commit d0b1addc6f
2 changed files with 68 additions and 0 deletions

View file

@ -26,6 +26,7 @@ import ThingsHistory from '../views/Things/ThingsHistory'
import ThingsView from '../views/Things/ThingsView'
import UserActivities from '../views/User/UserActivities'
import UserPoints from '../views/User/UserPoints'
import NotFound from '../views/components/NotFound'
const getMainRoute = () => {
if (
import.meta.env.VITE_IS_LANDING_DEFAULT === 'true' &&
@ -145,6 +146,10 @@ const Router = createBrowserRouter([
path: 'labels/',
element: <LabelView />,
},
{
path: '*',
element: <NotFound />,
},
],
},
])