mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
fix and simplify types for pages
This commit is contained in:
parent
ef5298664c
commit
7f861d839a
@ -72,7 +72,7 @@ export async function getStaticPaths({ locales }: GetStaticPathsContext) {
|
||||
|
||||
export default function Pages({
|
||||
page,
|
||||
}: InferGetStaticPropsType<typeof getStaticProps>) {
|
||||
}: {page: Page}) {
|
||||
const router = useRouter()
|
||||
|
||||
return router.isFallback ? (
|
||||
|
Loading…
x
Reference in New Issue
Block a user