mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Updates to wishlist feature
This commit is contained in:
@@ -57,7 +57,7 @@ export default function Home({
|
||||
width: i === 0 ? 1080 : 540,
|
||||
height: i === 0 ? 1080 : 540,
|
||||
}}
|
||||
wishlist={commerceFeatures.wishlist}
|
||||
wishlist={!!process.env.WISHLIST_ENABLED}
|
||||
/>
|
||||
))}
|
||||
</Grid>
|
||||
@@ -71,7 +71,7 @@ export default function Home({
|
||||
width: 320,
|
||||
height: 320,
|
||||
}}
|
||||
wishlist={commerceFeatures.wishlist}
|
||||
wishlist={!!process.env.WISHLIST_ENABLED}
|
||||
/>
|
||||
))}
|
||||
</Marquee>
|
||||
@@ -94,7 +94,7 @@ export default function Home({
|
||||
width: i === 0 ? 1080 : 540,
|
||||
height: i === 0 ? 1080 : 540,
|
||||
}}
|
||||
wishlist={commerceFeatures.wishlist}
|
||||
wishlist={!!process.env.WISHLIST_ENABLED}
|
||||
/>
|
||||
))}
|
||||
</Grid>
|
||||
@@ -108,7 +108,7 @@ export default function Home({
|
||||
width: 320,
|
||||
height: 320,
|
||||
}}
|
||||
wishlist={commerceFeatures.wishlist}
|
||||
wishlist={!!process.env.WISHLIST_ENABLED}
|
||||
/>
|
||||
))}
|
||||
</Marquee>
|
||||
|
@@ -71,7 +71,7 @@ export default function Slug({
|
||||
) : (
|
||||
<ProductView
|
||||
product={product as any}
|
||||
wishlist={commerceFeatures.wishlist}
|
||||
wishlist={!!process.env.WISHLIST_ENABLED}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
@@ -34,6 +34,7 @@ import {
|
||||
getDesignerPath,
|
||||
useSearchMeta,
|
||||
} from '@lib/search'
|
||||
import { Product } from '@commerce/types'
|
||||
|
||||
export async function getStaticProps({
|
||||
preview,
|
||||
|
Reference in New Issue
Block a user