Skip to content

Commit 4e6c9d9

Browse files
committed
text styling and conditional rendering
1 parent 9864fa3 commit 4e6c9d9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/components/ProductList.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@ const ProductList = ({ actionLabel, content, category }: ProductListProps) => {
6060
</div>
6161
<Flex className="ms-4 w-full flex-col justify-between pb-4 sm:flex-row">
6262
<div className="flex flex-1 flex-col gap-2">
63-
<div>{title}</div>
63+
<div className="text-xl font-bold">{title}</div>
6464
<div className="mb-0 text-sm opacity-60">{description}</div>
65-
<div className="mb-0 flex flex-col gap-2 text-sm opacity-60">
66-
{contentItems}
67-
</div>
65+
{contentItems && (
66+
<div className="mb-0 flex flex-col gap-2 text-sm">
67+
{contentItems}
68+
</div>
69+
)}
6870
</div>
6971
{link && (
7072
<ButtonLink

0 commit comments

Comments
 (0)