diff options
Diffstat (limited to 'packages/demobank-ui/src/route.ts')
-rw-r--r-- | packages/demobank-ui/src/route.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/demobank-ui/src/route.ts b/packages/demobank-ui/src/route.ts index 912ba274d..4b021d762 100644 --- a/packages/demobank-ui/src/route.ts +++ b/packages/demobank-ui/src/route.ts @@ -74,8 +74,8 @@ function findMatch<DEF, RM extends RouteMap<DEF>, ROUTES extends keyof RM>( found.groups === undefined ? {} : structuredClone(found.groups); Object.entries(params).forEach(([key, value]) => { - values[key] = value - }) + values[key] = value; + }); // @ts-expect-error values is a map string which is equivalent to the RouteParamsType return { name, parent: pagesMap, values }; @@ -90,7 +90,7 @@ export function useCurrentLocation< ROUTES extends keyof RM, >(pagesMap: RM) { const pageList = Object.keys(pagesMap) as Array<ROUTES>; - const { path, params } = useNavigationContext() + const { path, params } = useNavigationContext(); return findMatch(pagesMap, pageList, path, params); } |