From 7c3f1298095727fcacdc903fa79369d5624bf3df Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Wed, 26 Jun 2024 22:01:38 -0700 Subject: lint project --- src/components/channel-card.tsx | 131 ++++++++++++++++++++++++---------------- 1 file changed, 78 insertions(+), 53 deletions(-) (limited to 'src/components/channel-card.tsx') diff --git a/src/components/channel-card.tsx b/src/components/channel-card.tsx index b66a6e0..c19f492 100644 --- a/src/components/channel-card.tsx +++ b/src/components/channel-card.tsx @@ -1,59 +1,84 @@ -import { AvatarImage, AvatarFallback, Avatar } from "@/components/ui/avatar" -import { CardTitle, CardHeader, CardContent, Card } from "@/components/ui/card" -import { Badge } from "@/components/ui/badge" +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 + 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} -
- -
-
-
- ) + 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