You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
frontend: write stories and tests for the user home
This commit is contained in:
@@ -135,7 +135,9 @@ const routeToPath = (route: Route): string =>
|
||||
.map((part) => encodeURIComponent(part))
|
||||
.join("/");
|
||||
|
||||
export const appConfigAtom = atom(window.APP_CONFIG);
|
||||
export const appConfigAtom = atom<AppConfig>(
|
||||
typeof window !== "undefined" ? window.APP_CONFIG : { root: "/" },
|
||||
);
|
||||
|
||||
const pathToRoute = (path: string): Route => {
|
||||
const segments = path.split("/").map(decodeURIComponent);
|
||||
|
||||
Reference in New Issue
Block a user