disable ratings and reviews if a provider is BC

This commit is contained in:
powerwlsl 2022-08-09 02:24:27 +09:00
parent 87134e2990
commit 3e35e64906
2 changed files with 9 additions and 6 deletions

View File

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

View File

@ -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}/>
<div className="text-accent-6 pr-1 font-medium text-sm">36 reviews</div>
</div>
}
<div>
{process.env.COMMERCE_CART_ENABLED && (
<Button