Skip to content

Commit

Permalink
Allow html in product summary
Browse files Browse the repository at this point in the history
  • Loading branch information
futurGH committed Nov 14, 2023
1 parent 5fdb05f commit f9dd3d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/product/ProductInfo.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ function ProductDescription({ product, gallery }: ProductInfoProps) {
return (
<div className="mb-12 flex flex-col space-y-8">
<h1 className="text-matcha text-3xl leading-10 md:text-4xl">{product.title}</h1>
{product.summary?.value ? <p className="prose text-walnut leading-7">{product.summary?.value}</p> : null}
{product.summary?.value ? (
<p
className="prose text-walnut leading-7"
dangerouslySetInnerHTML={{ __html: product.summary?.value }}></p>
) : null}
<div className="flex flex-col items-start space-y-6 text-matcha text-xl leading-8 lg:text-2xl">
<VariantSelector gallery={gallery} />
<div className="flex items-center space-x-2">
Expand Down

0 comments on commit f9dd3d6

Please sign in to comment.