style: lint

This commit is contained in:
Davinci 2024-05-17 15:28:47 +02:00 committed by Yury
parent 5ad9d2bc0f
commit d85834c08d
2 changed files with 5 additions and 10 deletions

View File

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

View File

@ -57,7 +57,7 @@ export const Login = () => {
const navigateAfterLogin = (path: string) => {
const callbackPath = searchParams.get('callbackPath')
if (callbackPath) {
// base64 decoded path
const path = atob(callbackPath)