feat(blog): implement interactive in-article product cards (CAT-P2-10)
Deploy Canina / deploy (push) Successful in 2m15s
Deploy Canina / deploy (push) Successful in 2m15s
This commit is contained in:
1 parent
69094a8646
commit
bb81f2c944
6 files changed
+532
-5
No files matched your search
@@ -18,6 +18,8 @@ import {
|
||||
import Link from 'next/link';
|
||||
import SafeImage from "./SafeImage";
|
||||
import api from "../lib/services/api";
|
||||
import ArticleContentRenderer from "./ArticleContentRenderer";
|
||||
|
||||
|
||||
interface BlogPostClientProps {
|
||||
blog: any;
|
||||
@@ -173,10 +175,10 @@ export default function BlogPostClient({ blog, publishedDate, authorName, saniti
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Main Rich Content HTML Renderer */}
|
||||
<div
|
||||
className="prose prose-base sm:prose-lg max-w-none text-medical-gray-700 leading-loose space-y-5 article-html-content"
|
||||
dangerouslySetInnerHTML={{ __html: sanitizedContent }}
|
||||
{/* Main Rich Content HTML Renderer with In-Article Product Cards */}
|
||||
<ArticleContentRenderer
|
||||
contentHtml={sanitizedContent}
|
||||
relatedProducts={relatedProducts}
|
||||
/>
|
||||
|
||||
{/* Tags Chip Footer */}
|
||||
|
||||
Reference in new issue
Block a user