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 { IApiErrorRepsonse } from './types/error.types'
|
||||||
import MainRouter from './router/Main'
|
import MainRouter from './router/Main'
|
||||||
import AuthRouter from './router/Auth'
|
import AuthRouter from './router/Auth'
|
||||||
|
import { Pages } from './config/Pages'
|
||||||
|
|
||||||
i18next.init({
|
i18next.init({
|
||||||
interpolation: { escapeValue: false },
|
interpolation: { escapeValue: false },
|
||||||
@@ -45,6 +46,7 @@ const App: FC = () => {
|
|||||||
setIsLogin('isLogin')
|
setIsLogin('isLogin')
|
||||||
} else {
|
} else {
|
||||||
setIsLogin('isNotLogin')
|
setIsLogin('isNotLogin')
|
||||||
|
window.location.href = Pages.auth.login
|
||||||
}
|
}
|
||||||
|
|
||||||
}, [])
|
}, [])
|
||||||
|
|||||||
Reference in New Issue
Block a user