From 142ca6b33506146b322f11aaa331d2a250a3a6c7 Mon Sep 17 00:00:00 2001 From: Neeraj Kashyap Date: Tue, 24 Aug 2021 06:28:31 -0700 Subject: [PATCH] Slightly improved display of whale watch cards They still need a lot of work. --- .../stream-cards/EthereumWhalewatch.js | 60 +++++-------------- 1 file changed, 16 insertions(+), 44 deletions(-) diff --git a/frontend/src/components/stream-cards/EthereumWhalewatch.js b/frontend/src/components/stream-cards/EthereumWhalewatch.js index 64cb9a47..11fccb4f 100644 --- a/frontend/src/components/stream-cards/EthereumWhalewatch.js +++ b/frontend/src/components/stream-cards/EthereumWhalewatch.js @@ -52,8 +52,6 @@ const EthereumWhalewatchCard_ = ({ valueIn: entry?.event_data?.value_in[0] || {}, }; - console.log("PURPLE RAIN:", whales); - Object.values(whales).forEach((whaleInfo) => { whaleInfo.color = subscriptionsCache.data.subscriptions.find((obj) => { @@ -68,8 +66,8 @@ const EthereumWhalewatchCard_ = ({ const rowLabels = { transactionsOut: "Number of transactions sent", transactionsIn: "Number of transactions received", - valueOut: "ETH sent", - valueIn: "ETH received", + valueOut: "WEI sent", + valueIn: "WEI received", }; return ( @@ -103,9 +101,6 @@ const EthereumWhalewatchCard_ = ({ {Object.keys(whales).map((whaleType) => { - { - console.log("PURPLE RAIN: whaleType:", whaleType); - } return ( - Address: - - - - setCopyString(whales[whaleType].address)} - > - {whales[whaleType].label} + {rowLabels[whaleType]} - setCopyString(whales[whaleType].address)} > - To: + {whales[whaleType].label} -- {whales[whaleType].statistic} - - - {whales[whaleType].statistic} - - );