diff --git a/frontend/src/components/StreamEntry.js b/frontend/src/components/StreamEntry.js index 2f5eb765..788bf1af 100644 --- a/frontend/src/components/StreamEntry.js +++ b/frontend/src/components/StreamEntry.js @@ -10,6 +10,13 @@ import SmartcontractCard from "./stream-cards/Smartcontract"; const StreamEntry_ = ({ entry, showOnboardingTooltips, className }) => { const ui = useContext(UIContext); + const eventCategories = { + blockchain: "_blockchain", + whalewatch: "_whalewatch", + txpool: "_txpool", + smartcontract: "_smartcontract", + }; + return ( { h="100%" spacing={0} > - {entry.event_type.includes("_blockchain") && ( + {entry.event_type.includes(eventCategories.blockchain) && ( )} - {entry.event_type.includes("_whalewatch") && ( + {entry.event_type.includes(eventCategories.whalewatch) && ( )} - {entry.event_type.includes("_txpool") && ( + {entry.event_type.includes(eventCategories.txpool) && ( )} - {entry.event_type.includes("_smartcontract") && ( + {entry.event_type.includes(eventCategories.smartcontract) && ( { const [showFullView] = useMediaQuery(["(min-width: 420px)"]); if (subscriptionsCache.isLoading) return ; - console.log(entry.event_data); - const transaction = { ...entry.event_data, };