Upgrade deps

This commit is contained in:
2022-01-05 16:28:49 +07:00
parent 9d14fe60f0
commit 9d372bee86
35 changed files with 532 additions and 265 deletions

7
src/pages/error/index.ts Normal file
View File

@@ -0,0 +1,7 @@
import AccessDenied from "./403";
import NotFound from "./404";
export {
AccessDenied,
NotFound,
}

8
src/pages/index.ts Normal file
View 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 }

View File

@@ -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