Updates to wishlist feature

This commit is contained in:
Luis Alvarez
2021-02-22 19:06:03 -05:00
parent 4b4d804d03
commit a8607f24cd
10 changed files with 20 additions and 15 deletions

View File

@@ -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>

View File

@@ -71,7 +71,7 @@ export default function Slug({
) : (
<ProductView
product={product as any}
wishlist={commerceFeatures.wishlist}
wishlist={!!process.env.WISHLIST_ENABLED}
/>
)
}

View File

@@ -34,6 +34,7 @@ import {
getDesignerPath,
useSearchMeta,
} from '@lib/search'
import { Product } from '@commerce/types'
export async function getStaticProps({
preview,