From 1ab5215a4294c2bd80443a14088fcd79cbd97d16 Mon Sep 17 00:00:00 2001
From: Pinapelz
Date: Sat, 5 Oct 2024 16:19:16 -0700
Subject: add countdown timer to date in next milestone projection
---
src/components/ChannelCard/ChannelCard.tsx | 6 +-
src/components/Countdown.tsx | 70 ++++++++++++++
src/pages/stats/[slug].tsx | 144 ++++++++++++++---------------
3 files changed, 144 insertions(+), 76 deletions(-)
create mode 100644 src/components/Countdown.tsx
diff --git a/src/components/ChannelCard/ChannelCard.tsx b/src/components/ChannelCard/ChannelCard.tsx
index 8f4fa07..44541ad 100644
--- a/src/components/ChannelCard/ChannelCard.tsx
+++ b/src/components/ChannelCard/ChannelCard.tsx
@@ -1,5 +1,6 @@
import React from 'react';
import Image from 'next/image';
+import Countdown from '../Countdown';
type ChannelCardProps = {
channel_id: string;
@@ -78,8 +79,11 @@ const ChannelCard: React.FC = ({
Next Milestone: {Number(nextMilestone).toLocaleString()}
- Estimated in {nextMilestoneDays} days ({nextMilestoneDate})
+ Estimated Date: {nextMilestoneDate}
+
+
+