From 10f6c36c637f0ed88c413cdcce6d3d60683a1b60 Mon Sep 17 00:00:00 2001 From: IgboPharaoh Date: Tue, 12 Nov 2024 19:36:19 +0100 Subject: [PATCH] chore: remove slug from transcript card --- .../common/TranscriptDetailsCard.tsx | 33 ++++--------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/src/components/common/TranscriptDetailsCard.tsx b/src/components/common/TranscriptDetailsCard.tsx index e11d10a..f6a0ac9 100644 --- a/src/components/common/TranscriptDetailsCard.tsx +++ b/src/components/common/TranscriptDetailsCard.tsx @@ -15,38 +15,19 @@ const TranscriptDetailsCard = ({ data, slug }: { data: ContentTreeArray; slug: s return (
-
-
-
- {slug - .join(" / ") - .split(" ") - .map((slg, i) => ( -

- {unsluggify(slg)} -

- ))} -
- - {date && ( -
- date icon -

{formatDate(date!)}

-
- )} -
- +
{title} + {date && ( +
+ date icon +

{formatDate(date!)}

+
+ )}