feat(frontend): polish login and design tokens
This commit is contained in:
@@ -33,7 +33,7 @@ export type Page =
|
||||
| "settings"
|
||||
| "settingsNotify";
|
||||
|
||||
export type AuthMode = "login" | "register";
|
||||
export type AuthMode = "login";
|
||||
export type ResolvedRoute = {
|
||||
page: Page;
|
||||
authMode: AuthMode;
|
||||
@@ -111,7 +111,7 @@ export function resolveRoute(): ResolvedRoute {
|
||||
const search = new URLSearchParams(window.location.search);
|
||||
const hash = window.location.hash.replace("#", "");
|
||||
|
||||
if (path === "/register" || hash === "register") return { page: "dashboard", authMode: "register", hash };
|
||||
if (path === "/register" || hash === "register") return { page: "dashboard", authMode: "login", hash };
|
||||
if (path === "/login") return { page: "dashboard", authMode: "login", hash };
|
||||
if (path === "/" && isPage(hash)) return { page: hash, authMode: "login", hash };
|
||||
if (path === "/" || path === "/dashboard") return { page: "dashboard", authMode: "login", hash };
|
||||
|
||||
Reference in New Issue
Block a user