diff --git a/components/Dashboard/LineChartSet/index.tsx b/components/Dashboard/LineChartSet/index.tsx index 5eda7a0..27a01f8 100644 --- a/components/Dashboard/LineChartSet/index.tsx +++ b/components/Dashboard/LineChartSet/index.tsx @@ -188,12 +188,12 @@ export default function LineChartSet() { } }; - const fallbackNotificationsNumber = 139000000; + const fallbackNotificationsNumber = 140902329; - const fallbackSubscriberCount = 300000; + const fallbackSubscriberCount = 296625; return ( <> - - + */} {/* @@ -231,7 +231,7 @@ export default function LineChartSet() { Notifications Statistics */} - - - {/* */} + {/* */} - + {/* */} {/* diff --git a/components/Dashboard/OverViewSet/index.tsx b/components/Dashboard/OverViewSet/index.tsx index 689c3dd..665f8e6 100644 --- a/components/Dashboard/OverViewSet/index.tsx +++ b/components/Dashboard/OverViewSet/index.tsx @@ -39,7 +39,9 @@ export default function OverViewSet() { const { isDarkMode } = getTheme(); const isMobile = useMediaQuery('(max-width:480px)'); - const fallbackNotificationNumber = 139000000; + const fallbackNotificationNumber = 140902329; + + const fallbackChatNumber = 58834; const overViewData = [ { image: !isDarkMode ? IntegrationLightIcon : IntegrationDarkIcon, @@ -50,7 +52,7 @@ export default function OverViewSet() { { image: !isDarkMode ? ChatSentLightIcon : ChatSentDarkIcon, title: 'Chats Sent', - value: chatSent, + value: chatSent || fallbackChatNumber.toLocaleString(), size: 51, }, // { 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 ( ); }