mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Remove design system
It was only a placeholder until we get some content.
This commit is contained in:
@@ -97,9 +97,6 @@ function setTitle(loadedRoute: LoadedRoute) {
|
||||
} else if (loadedRoute.resource === "authenticationError") {
|
||||
title.push("Authentication Error");
|
||||
title.push("Radicle");
|
||||
} else if (loadedRoute.resource === "designSystem") {
|
||||
title.push("Design System");
|
||||
title.push("Radicle");
|
||||
} else {
|
||||
utils.unreachable(loadedRoute);
|
||||
}
|
||||
@@ -126,9 +123,6 @@ function urlToRoute(url: URL): Route | null {
|
||||
case "authenticationError": {
|
||||
return { resource: "authenticationError", params: { error: "" } };
|
||||
}
|
||||
case "designSystem": {
|
||||
return { resource: "designSystem" };
|
||||
}
|
||||
default: {
|
||||
return null;
|
||||
}
|
||||
@@ -140,8 +134,6 @@ export function routeToPath(route: Route): string {
|
||||
return "/";
|
||||
} else if (route.resource === "authenticationError") {
|
||||
return "/authenticationError";
|
||||
} else if (route.resource === "designSystem") {
|
||||
return "/designSystem";
|
||||
} else if (route.resource === "booting") {
|
||||
return "";
|
||||
} else {
|
||||
|
||||
@@ -24,19 +24,10 @@ interface LoadedHomeRoute {
|
||||
params: { repos: RepoInfo[]; config: Config };
|
||||
}
|
||||
|
||||
interface DesignSystemRoute {
|
||||
resource: "designSystem";
|
||||
}
|
||||
|
||||
export type Route =
|
||||
| BootingRoute
|
||||
| DesignSystemRoute
|
||||
| HomeRoute
|
||||
| AuthenticationErrorRoute;
|
||||
export type Route = BootingRoute | HomeRoute | AuthenticationErrorRoute;
|
||||
|
||||
export type LoadedRoute =
|
||||
| BootingRoute
|
||||
| DesignSystemRoute
|
||||
| LoadedHomeRoute
|
||||
| AuthenticationErrorRoute;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user