From 2e2d32910af832f2e9c28a30cc2ad45d16f804ce Mon Sep 17 00:00:00 2001 From: 0tuedon <90271995+0tuedon@users.noreply.github.com> Date: Thu, 12 Dec 2024 23:32:20 +0300 Subject: [PATCH] fix: issues with nested list showing dark gray --- .gitignore | 1 + src/components/common/Pill.tsx | 2 +- .../common/TranscriptMetadataCard.tsx | 12 +++++-- src/components/explore/ContentGrouping.tsx | 2 +- .../individual-transcript/markdown.css | 35 ++++++++----------- 5 files changed, 26 insertions(+), 26 deletions(-) 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" && (