From 20e6abb48cada5348ddf921ac778c1fd1f45d11c Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 5 Oct 2024 15:31:30 -0700 Subject: improve channel card component design --- src/components/channel-card.tsx | 84 ----------------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 src/components/channel-card.tsx (limited to 'src/components/channel-card.tsx') diff --git a/src/components/channel-card.tsx b/src/components/channel-card.tsx deleted file mode 100644 index c19f492..0000000 --- a/src/components/channel-card.tsx +++ /dev/null @@ -1,84 +0,0 @@ -import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; -import { Badge } from "@/components/ui/badge"; -import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; - -interface ChannelCardProps { - channel_id: string; - name: string; - avatarUrl: string; - subscriberCount: number; - videoCount: number; - viewCount: number; - suborg: string; - nextMilestone: string; - nextMilestoneDays: string; - nextMilestoneDate: string; -} - -export function ChannelCard(props: ChannelCardProps) { - const { - channel_id, - name, - avatarUrl, - subscriberCount, - videoCount, - viewCount, - suborg, - nextMilestone, - nextMilestoneDays, - nextMilestoneDate, - } = props; - return ( - - -
- - - PR - -
- - {name} - - {suborg} -
-
-
- -
- Subscribers - - {Number(subscriberCount).toLocaleString()} - -
-
- Videos - {videoCount} -
-
- View Count - - {Number(viewCount).toLocaleString()} - -
-
- Next Milestone - - {Number(nextMilestone).toLocaleString()} - -
- - {nextMilestoneDays} days - - - {nextMilestoneDate} - -
-
-
-
- ); -} -- cgit v1.2.3