mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
disable ratings and reviews if a provider is BC
This commit is contained in:
parent
87134e2990
commit
3e35e64906
@ -21,7 +21,7 @@ BIGCOMMERCE_CHANNEL_ID=
|
||||
BIGCOMMERCE_STORE_URL=
|
||||
BIGCOMMERCE_STORE_API_STORE_HASH=
|
||||
BIGCOMMERCE_STORE_API_CLIENT_SECRET=
|
||||
|
||||
NEXT_PUBLIC_IS_BC=
|
||||
|
||||
NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN=
|
||||
NEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN=
|
||||
|
@ -52,10 +52,13 @@ const ProductSidebar: FC<ProductSidebarProps> = ({ product, className }) => {
|
||||
className="pb-4 break-words w-full max-w-xl"
|
||||
html={product.descriptionHtml || product.description}
|
||||
/>
|
||||
|
||||
{!process.env.NEXT_PUBLIC_IS_BC &&
|
||||
<div className="flex flex-row justify-between items-center">
|
||||
<Rating value={4} />
|
||||
<Rating value={4}/>
|
||||
<div className="text-accent-6 pr-1 font-medium text-sm">36 reviews</div>
|
||||
</div>
|
||||
}
|
||||
<div>
|
||||
{process.env.COMMERCE_CART_ENABLED && (
|
||||
<Button
|
||||
|
Loading…
x
Reference in New Issue
Block a user