move to login
This commit is contained in:
@@ -8,6 +8,7 @@ import FaJson from './langs/fa.json'
|
||||
import { IApiErrorRepsonse } from './types/error.types'
|
||||
import MainRouter from './router/Main'
|
||||
import AuthRouter from './router/Auth'
|
||||
import { Pages } from './config/Pages'
|
||||
|
||||
i18next.init({
|
||||
interpolation: { escapeValue: false },
|
||||
@@ -45,6 +46,7 @@ const App: FC = () => {
|
||||
setIsLogin('isLogin')
|
||||
} else {
|
||||
setIsLogin('isNotLogin')
|
||||
window.location.href = Pages.auth.login
|
||||
}
|
||||
|
||||
}, [])
|
||||
|
||||
Reference in New Issue
Block a user