diff --git a/.gitignore b/.gitignore index 7db8e0f..d73d556 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ /public/topics-by-category-counts.json /public/aliases.json /public/topics-counts.json +/public/topics.json /public/speaker-data.json /public/source-count-data.json /public/sources-data.json diff --git a/src/components/common/Pill.tsx b/src/components/common/Pill.tsx index 64d3960..b2e2b59 100644 --- a/src/components/common/Pill.tsx +++ b/src/components/common/Pill.tsx @@ -5,7 +5,7 @@ const Pill = ({ name, slug }: { name: string; slug: string }) => { {name} diff --git a/src/components/common/TranscriptMetadataCard.tsx b/src/components/common/TranscriptMetadataCard.tsx index b4792e0..d478e5d 100644 --- a/src/components/common/TranscriptMetadataCard.tsx +++ b/src/components/common/TranscriptMetadataCard.tsx @@ -2,6 +2,7 @@ import React, { useState } from "react"; import Image from "next/image"; +import allTopics from "@/public/topics-counts.json" import { BookmarkIcon, CalendarIcon, @@ -38,6 +39,11 @@ const TranscriptMetadataComponent = ({ const formattedDate = isDate(convertedDate) ? format(convertedDate, "d MMMM, yyyy") : ""; + const topicsWithTitles = topics.map(topic => { + const currentTopic = allTopics.find( topicData => topicData.slug === topic ); + return currentTopic; + } ) + return (
Not available
} diff --git a/src/components/explore/ContentGrouping.tsx b/src/components/explore/ContentGrouping.tsx index 85bcce9..642075f 100644 --- a/src/components/explore/ContentGrouping.tsx +++ b/src/components/explore/ContentGrouping.tsx @@ -40,7 +40,7 @@ const ContentGrouping = ({ {screen === "desktop" && (