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>> = {
layout: LayoutShoutsPage,
expo: LayoutShoutsPage,
connect: ConnectPage,
create: CreatePage,
home: HomePage,

View File

@ -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<Routes>(
projects: '/about/projects',
termsOfUse: '/about/terms-of-use',
thanks: '/about/thanks',
layout: 'layout/:layout'
expo: '/expo/:layout'
},
{
search: false,