forked from crowetic/commerce
Renaming to common
This commit is contained in:
parent
629df7a9ab
commit
1e61afbbea
1
docs/ROADMAP.md
Normal file
1
docs/ROADMAP.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# Roadmap
|
1
hooks/index.ts
Normal file
1
hooks/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export { default as useCart } from './useCart'
|
0
hooks/useCart.ts
Normal file
0
hooks/useCart.ts
Normal file
@ -45,7 +45,7 @@ export default function Cart() {
|
|||||||
<div className="lg:col-span-8">
|
<div className="lg:col-span-8">
|
||||||
{isEmpty ? (
|
{isEmpty ? (
|
||||||
<div className="flex-1 px-12 py-24 flex flex-col justify-center items-center ">
|
<div className="flex-1 px-12 py-24 flex flex-col justify-center items-center ">
|
||||||
<span className="border border-dashed border-secondary rounded-full flex items-center justify-center w-16 h-16 bg-primary p-12 rounded-lg text-primary">
|
<span className="border border-dashed border-secondary flex items-center justify-center w-16 h-16 bg-primary p-12 rounded-lg text-primary">
|
||||||
<Bag className="absolute" />
|
<Bag className="absolute" />
|
||||||
</span>
|
</span>
|
||||||
<h2 className="pt-6 text-2xl font-bold tracking-wide text-center">
|
<h2 className="pt-6 text-2xl font-bold tracking-wide text-center">
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
import { useMemo } from 'react'
|
import { useMemo } from 'react'
|
||||||
import type { GetStaticPropsContext, InferGetStaticPropsType } from 'next'
|
import type { GetStaticPropsContext, InferGetStaticPropsType } from 'next'
|
||||||
import { getConfig } from '@bigcommerce/storefront-data-hooks/api'
|
|
||||||
import getAllProducts from '@bigcommerce/storefront-data-hooks/api/operations/get-all-products'
|
|
||||||
import getSiteInfo from '@bigcommerce/storefront-data-hooks/api/operations/get-site-info'
|
|
||||||
import getAllPages from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages'
|
|
||||||
import rangeMap from '@lib/range-map'
|
import rangeMap from '@lib/range-map'
|
||||||
import { Layout } from '@components/core'
|
import { Layout } from '@components/core'
|
||||||
import { Grid, Marquee, Hero } from '@components/ui'
|
import { Grid, Marquee, Hero } from '@components/ui'
|
||||||
import { ProductCard } from '@components/product'
|
import { ProductCard } from '@components/product'
|
||||||
import HomeAllProductsGrid from '@components/core/HomeAllProductsGrid'
|
import HomeAllProductsGrid from '@components/core/HomeAllProductsGrid'
|
||||||
|
|
||||||
|
import { getConfig } from '@bigcommerce/storefront-data-hooks/api'
|
||||||
|
import getAllProducts from '@bigcommerce/storefront-data-hooks/api/operations/get-all-products'
|
||||||
|
import getSiteInfo from '@bigcommerce/storefront-data-hooks/api/operations/get-site-info'
|
||||||
|
import getAllPages from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages'
|
||||||
|
|
||||||
export async function getStaticProps({
|
export async function getStaticProps({
|
||||||
preview,
|
preview,
|
||||||
locale,
|
locale,
|
||||||
|
@ -4,11 +4,14 @@ import type {
|
|||||||
InferGetStaticPropsType,
|
InferGetStaticPropsType,
|
||||||
} from 'next'
|
} from 'next'
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
import { getConfig } from '@bigcommerce/storefront-data-hooks/api'
|
|
||||||
import getAllPages from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages'
|
|
||||||
import getProduct from '@bigcommerce/storefront-data-hooks/api/operations/get-product'
|
|
||||||
import { Layout } from '@components/core'
|
import { Layout } from '@components/core'
|
||||||
import { ProductView } from '@components/product'
|
import { ProductView } from '@components/product'
|
||||||
|
|
||||||
|
// Data
|
||||||
|
|
||||||
|
import { getConfig } from '@bigcommerce/storefront-data-hooks/api'
|
||||||
|
import getProduct from '@bigcommerce/storefront-data-hooks/api/operations/get-product'
|
||||||
|
import getAllPages from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages'
|
||||||
import getAllProductPaths from '@bigcommerce/storefront-data-hooks/api/operations/get-all-product-paths'
|
import getAllProductPaths from '@bigcommerce/storefront-data-hooks/api/operations/get-all-product-paths'
|
||||||
|
|
||||||
export async function getStaticProps({
|
export async function getStaticProps({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user