feat(F-103): completed feature
This commit is contained in:
@@ -2,6 +2,7 @@ import Link from 'next/link';
|
||||
import Image from 'next/image';
|
||||
import type { Metadata } from 'next';
|
||||
import { fetchBrandBySlug, fetchProducts, formatPrice } from '@/lib/api';
|
||||
import { formatRichText } from '@/lib/format-rich-text';
|
||||
|
||||
interface Props {
|
||||
params: Promise<{ slug: string }>;
|
||||
@@ -92,8 +93,8 @@ export default async function BrandPage({ params }: Props) {
|
||||
</h3>
|
||||
{product.description && (
|
||||
<div
|
||||
className="text-gray-500 text-xs mt-1 line-clamp-2 prose prose-xs max-w-none"
|
||||
dangerouslySetInnerHTML={{ __html: product.description }}
|
||||
className="text-gray-500 text-xs mt-1 line-clamp-2 rich-text prose prose-xs max-w-none"
|
||||
dangerouslySetInnerHTML={{ __html: formatRichText(product.description) }}
|
||||
/>
|
||||
)}
|
||||
<div className="mt-3 pr-2">
|
||||
|
||||
Reference in New Issue
Block a user