From 4d88bf2b27adc0aa28f63e56e1c24fc8123a944b Mon Sep 17 00:00:00 2001 From: rohitmalhotra1420 Date: Tue, 24 Dec 2024 14:23:44 +0530 Subject: [PATCH 1/2] commented analytics --- components/Dashboard/LineChartSet/index.tsx | 12 +++--- components/Dashboard/Trending.tsx | 46 +++++++++++++++++++-- 2 files changed, 48 insertions(+), 10 deletions(-) diff --git a/components/Dashboard/LineChartSet/index.tsx b/components/Dashboard/LineChartSet/index.tsx index 5eda7a0..c567fd8 100644 --- a/components/Dashboard/LineChartSet/index.tsx +++ b/components/Dashboard/LineChartSet/index.tsx @@ -193,7 +193,7 @@ export default function LineChartSet() { const fallbackSubscriberCount = 300000; return ( <> - - + */} {/* @@ -231,7 +231,7 @@ export default function LineChartSet() { Notifications Statistics */} - - - {/* */} + {/* */} - + {/* */} {/* diff --git a/components/Dashboard/Trending.tsx b/components/Dashboard/Trending.tsx index 397696a..79df3d5 100644 --- a/components/Dashboard/Trending.tsx +++ b/components/Dashboard/Trending.tsx @@ -7,6 +7,39 @@ import { getSubscribers } from '../../utils/api'; import { CHAIN_LIST } from '../../utils/constants'; import { LeaderboardType } from '../../types/otherTypes'; +const data = [ + { + channel: '0xB88460Bb2696CAb9D66013A05dFF29a28330689D', + name: 'Push Protocol', + icon: 'https://backend.epns.io/apis/v1/channels/icon/0xB88460Bb2696CAb9D66013A05dFF29a28330689D', + subscriber: 91630, + }, + { + channel: '0x90A48D5CF7343B08dA12E067680B4C6dbfE551Be', + name: 'ShapeShift', + icon: 'https://backend.epns.io/apis/v1/channels/icon/0x90A48D5CF7343B08dA12E067680B4C6dbfE551Be', + subscriber: 32473, + }, + { + channel: '0xe56f1D3EDFFF1f25855aEF744caFE7991c224FFF', + name: 'CoinDesk', + icon: 'https://backend.epns.io/apis/v1/channels/icon/0xe56f1D3EDFFF1f25855aEF744caFE7991c224FFF', + subscriber: 10944, + }, + { + channel: '0xf1A1542Ca902AE861B59bffE77D92E8CD76146f1', + name: 'HyperLiquid', + icon: 'https://backend.epns.io/apis/v1/channels/icon/0xf1A1542Ca902AE861B59bffE77D92E8CD76146f1', + subscriber: 53, + }, + { + channel: '0x76bA9825A5F707F133124E4608F1F2Dd1EF4006a', + name: 'Cow Protocol', + icon: 'https://backend.epns.io/apis/v1/channels/icon/0x76bA9825A5F707F133124E4608F1F2Dd1EF4006a', + subscriber: 185, + }, +]; + export default function Trending() { const [leaderBoard, setLeaderBoard] = React.useState([]); const [isLoading, setIsLoading] = React.useState(false); @@ -91,7 +124,9 @@ export default function Trending() { }); } - const filteredChannels=trendingChannelData.filter(channel=> channel.subscriber>30); + const filteredChannels = trendingChannelData.filter( + (channel) => channel.subscriber > 30 + ); const sortedChannels = filteredChannels?.sort( (a, b) => parseFloat(b?.trend) - parseFloat(a?.trend) @@ -104,9 +139,12 @@ export default function Trending() { return ( ); } From d5ab75240739b3cd1442852cfb8b5ed294425bbd Mon Sep 17 00:00:00 2001 From: rohitmalhotra1420 Date: Tue, 24 Dec 2024 14:28:04 +0530 Subject: [PATCH 2/2] fixed the numbers --- components/Dashboard/LineChartSet/index.tsx | 4 ++-- components/Dashboard/OverViewSet/index.tsx | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/Dashboard/LineChartSet/index.tsx b/components/Dashboard/LineChartSet/index.tsx index c567fd8..27a01f8 100644 --- a/components/Dashboard/LineChartSet/index.tsx +++ b/components/Dashboard/LineChartSet/index.tsx @@ -188,9 +188,9 @@ export default function LineChartSet() { } }; - const fallbackNotificationsNumber = 139000000; + const fallbackNotificationsNumber = 140902329; - const fallbackSubscriberCount = 300000; + const fallbackSubscriberCount = 296625; return ( <> {/*