bugfix(router): redirect to /workspaces if user is authenticated, otherwise redirect to /auth route + rename /login -> /auth
This commit is contained in:
@@ -71,7 +71,7 @@ export function Navbar() {
|
||||
setUser(null)
|
||||
setShowLogoutModal(false)
|
||||
toast.success(t.logoutToast || "Successfully logged out!")
|
||||
navigate("/login")
|
||||
navigate("/auth")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ export function Navbar() {
|
||||
<>
|
||||
<SettingsMenu />
|
||||
<Button
|
||||
onClick={() => navigate("/login")}
|
||||
onClick={() => navigate("/auth")}
|
||||
className="bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-600 dark:hover:bg-blue-700"
|
||||
>
|
||||
{t.login?.signIn || "Login"}
|
||||
|
||||
Reference in New Issue
Block a user