kopia lustrzana https://github.com/bugout-dev/moonstream
Add fixes.
rodzic
8734db0f44
commit
2593be4626
|
@ -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 (
|
||||
<Flex
|
||||
className={className}
|
||||
|
@ -37,28 +44,28 @@ const StreamEntry_ = ({ entry, showOnboardingTooltips, className }) => {
|
|||
h="100%"
|
||||
spacing={0}
|
||||
>
|
||||
{entry.event_type.includes("_blockchain") && (
|
||||
{entry.event_type.includes(eventCategories.blockchain) && (
|
||||
<BlockchainCard
|
||||
entry={entry}
|
||||
showOnboardingTooltips={showOnboardingTooltips}
|
||||
/>
|
||||
)}
|
||||
|
||||
{entry.event_type.includes("_whalewatch") && (
|
||||
{entry.event_type.includes(eventCategories.whalewatch) && (
|
||||
<WhalewatchCard
|
||||
entry={entry}
|
||||
showOnboardingTooltips={showOnboardingTooltips}
|
||||
/>
|
||||
)}
|
||||
|
||||
{entry.event_type.includes("_txpool") && (
|
||||
{entry.event_type.includes(eventCategories.txpool) && (
|
||||
<TXPoolCard
|
||||
entry={entry}
|
||||
showOnboardingTooltips={showOnboardingTooltips}
|
||||
/>
|
||||
)}
|
||||
|
||||
{entry.event_type.includes("_smartcontract") && (
|
||||
{entry.event_type.includes(eventCategories.smartcontract) && (
|
||||
<SmartcontractCard
|
||||
entry={entry}
|
||||
showOnboardingTooltips={showOnboardingTooltips}
|
||||
|
|
|
@ -44,8 +44,6 @@ const SmartcontractCard_ = ({ entry, showOnboardingTooltips, className }) => {
|
|||
const [showFullView] = useMediaQuery(["(min-width: 420px)"]);
|
||||
if (subscriptionsCache.isLoading) return <Spinner />;
|
||||
|
||||
console.log(entry.event_data);
|
||||
|
||||
const transaction = {
|
||||
...entry.event_data,
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue