Added links to pages in the footer

This commit is contained in:
Luis Alvarez
2020-10-15 14:00:41 -05:00
parent a0e5448210
commit a0b85bcf5b
8 changed files with 85 additions and 44 deletions

View File

@@ -25,7 +25,7 @@ export default function MyApp({ Component, pageProps }: AppProps) {
<ThemeProvider>
<SSRProvider>
<OverlayProvider>
<Layout>
<Layout pageProps={pageProps}>
<Component {...pageProps} />
</Layout>
</OverlayProvider>

View File

@@ -17,13 +17,10 @@ export async function getStaticProps({ preview }: GetStaticPropsContext) {
}
export default function Home({
pages,
products,
categories,
brands,
}: InferGetStaticPropsType<typeof getStaticProps>) {
console.log('PAGES', pages)
return (
<div className="mt-3">
<Grid items={products.slice(0, 3)} wrapper={ProductCard} />

View File

@@ -7,11 +7,11 @@ import useSearch from '@lib/bigcommerce/products/use-search'
import { Layout } from '@components/core'
import { Container, Grid, Skeleton } from '@components/ui'
import { ProductCard } from '@components/product'
import getSlug from '@utils/get-slug'
import {
filterQuery,
getCategoryPath,
getDesignerPath,
getSlug,
useSearchMeta,
} from '@utils/search'
import { range } from 'lodash'