diff --git a/packages/react/src/components/channel/ChannelCard.tsx b/packages/react/src/components/channel/ChannelCard.tsx index 06579aa71..113310148 100644 --- a/packages/react/src/components/channel/ChannelCard.tsx +++ b/packages/react/src/components/channel/ChannelCard.tsx @@ -14,7 +14,7 @@ type WithNonOptional = Pick< Partial>; type PartialChannel = WithNonOptional< Channel, - keyof ShortChannel | "subscriber_count" | "video_count" + keyof ShortChannel | "subscriber_count" | "video_count" | "inactive" >; interface ChannelCardProps extends PartialChannel { @@ -44,7 +44,8 @@ export function ChannelCard({ clip_count, top_topics, twitter, - twitch, // inactive, + twitch, + inactive, }: ChannelCardProps) { const { t } = useTranslation(); @@ -53,7 +54,10 @@ export function ChannelCard({ case "sm": return (
- +
{org} @@ -97,7 +101,11 @@ export function ChannelCard({ case "lg": return ( // Set min-height because react-virtuoso will break if the height is not fixed -
+
+ - -
+ {/* {inactive && ( +
+ )} */} +
{name}
@@ -142,7 +164,15 @@ export function ChannelCard({
- {top_topics && } +
+ {top_topics?.map((topic) => ( + + ))} +
{children ?? ( + {link ? {topic} : topic} );