Upgrade deps
This commit is contained in:
7
src/pages/error/index.ts
Normal file
7
src/pages/error/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import AccessDenied from "./403";
|
||||
import NotFound from "./404";
|
||||
|
||||
export {
|
||||
AccessDenied,
|
||||
NotFound,
|
||||
}
|
||||
8
src/pages/index.ts
Normal file
8
src/pages/index.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import About from './about'
|
||||
import Home from './home'
|
||||
import Info from './info'
|
||||
import Login from './login'
|
||||
import Profile from './profile'
|
||||
import Reset from './reset'
|
||||
|
||||
export { Login, About, Home, Info, Profile, Reset }
|
||||
@@ -1,7 +1,7 @@
|
||||
import { RouteTypes } from '@/routes/types'
|
||||
import { clearStorage } from '@/utils/ls_util'
|
||||
import { useEffect } from 'react'
|
||||
import { Redirect } from 'react-router'
|
||||
import { Navigate } from 'react-router'
|
||||
|
||||
const Reset = () => {
|
||||
const clearAllCaches = () => {
|
||||
@@ -17,7 +17,7 @@ const Reset = () => {
|
||||
clearAllCaches()
|
||||
}, [])
|
||||
|
||||
return <Redirect to={RouteTypes.HOME} />
|
||||
return <Navigate to={RouteTypes.HOME} />
|
||||
}
|
||||
|
||||
export default Reset
|
||||
Reference in New Issue
Block a user