expo route fix
This commit is contained in:
parent
eea5ace088
commit
cddc9d6a67
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user