From cddc9d6a670339d238b6f38addad75651c8a9b68 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Sun, 13 Nov 2022 06:47:55 +0300 Subject: [PATCH] expo route fix --- src/components/Root.tsx | 2 +- src/stores/router.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Root.tsx b/src/components/Root.tsx index 9c45f111..ade7d784 100644 --- a/src/components/Root.tsx +++ b/src/components/Root.tsx @@ -44,7 +44,7 @@ type RootSearchParams = { } const pagesMap: Record> = { - layout: LayoutShoutsPage, + expo: LayoutShoutsPage, connect: ConnectPage, create: CreatePage, home: HomePage, diff --git a/src/stores/router.ts b/src/stores/router.ts index 06792cb5..58fddaea 100644 --- a/src/stores/router.ts +++ b/src/stores/router.ts @@ -25,7 +25,7 @@ export interface Routes { projects: void termsOfUse: void thanks: void - layout: 'layout' + expo: 'layout' } const searchParamsStore = createSearchParams() @@ -51,7 +51,7 @@ const routerStore = createRouter( projects: '/about/projects', termsOfUse: '/about/terms-of-use', thanks: '/about/thanks', - layout: 'layout/:layout' + expo: '/expo/:layout' }, { search: false,