refactor: organized pages based on domain

This commit is contained in:
2026-02-23 12:30:27 +03:30
parent 32246fd0cc
commit 1f763a33ac
31 changed files with 317 additions and 314 deletions

View File

@@ -14,7 +14,7 @@ interface Route {
export const getRoutes = (
auth: string | null,
roles: ItemWithSubItems[]
roles: ItemWithSubItems[],
): Route[] => {
let generalRoutes: Route[] = auth
? [
@@ -34,7 +34,7 @@ export const getRoutes = (
role?.subItems.map((item) => ({
path: item.path,
component: item.component,
}))
})),
);
if (roles) {

View File

@@ -23,7 +23,7 @@ export function makeRouter(auth: string | null, roles: ItemWithSubItems[]) {
getParentRoute: () => rootRoute,
path,
component,
}) as AnyRoute
}) as AnyRoute,
);
const notFoundRoute = new Route({