style: lint
This commit is contained in:
parent
eff8827a86
commit
a1f16c33b2
13
src/App.tsx
13
src/App.tsx
@ -35,7 +35,9 @@ const App = () => {
|
||||
|
||||
const handleRootRedirect = () => {
|
||||
if (authState.loggedIn) return appPrivateRoutes.homePage
|
||||
const callbackPathEncoded = btoa(window.location.href.split(`${window.location.origin}/#`)[1])
|
||||
const callbackPathEncoded = btoa(
|
||||
window.location.href.split(`${window.location.origin}/#`)[1]
|
||||
)
|
||||
return `${appPublicRoutes.login}?callbackPath=${callbackPathEncoded}`
|
||||
}
|
||||
|
||||
@ -72,14 +74,7 @@ const App = () => {
|
||||
}
|
||||
})}
|
||||
|
||||
<Route
|
||||
path="*"
|
||||
element={
|
||||
<Navigate
|
||||
to={handleRootRedirect()}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<Route path="*" element={<Navigate to={handleRootRedirect()} />} />
|
||||
</Route>
|
||||
</Routes>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user