expo route fix

This commit is contained in:
tonyrewin 2022-11-13 06:47:55 +03:00
parent eea5ace088
commit cddc9d6a67
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ type RootSearchParams = {
} }
const pagesMap: Record<keyof Routes, Component<PageProps>> = { const pagesMap: Record<keyof Routes, Component<PageProps>> = {
layout: LayoutShoutsPage, expo: LayoutShoutsPage,
connect: ConnectPage, connect: ConnectPage,
create: CreatePage, create: CreatePage,
home: HomePage, home: HomePage,

View File

@ -25,7 +25,7 @@ export interface Routes {
projects: void projects: void
termsOfUse: void termsOfUse: void
thanks: void thanks: void
layout: 'layout' expo: 'layout'
} }
const searchParamsStore = createSearchParams() const searchParamsStore = createSearchParams()
@ -51,7 +51,7 @@ const routerStore = createRouter<Routes>(
projects: '/about/projects', projects: '/about/projects',
termsOfUse: '/about/terms-of-use', termsOfUse: '/about/terms-of-use',
thanks: '/about/thanks', thanks: '/about/thanks',
layout: 'layout/:layout' expo: '/expo/:layout'
}, },
{ {
search: false, search: false,