From 6c68a21faf31b3349db5ddb3ba528c3d537de6ef Mon Sep 17 00:00:00 2001 From: Andrey Dolgolev Date: Wed, 8 Sep 2021 20:17:47 +0300 Subject: [PATCH] Add fixes in labeling staff. --- frontend/src/components/NewSubscription.js | 5 ++--- frontend/src/components/SubscriptionsList.js | 11 ++++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/NewSubscription.js b/frontend/src/components/NewSubscription.js index e921e773..c4bd077d 100644 --- a/frontend/src/components/NewSubscription.js +++ b/frontend/src/components/NewSubscription.js @@ -73,11 +73,11 @@ const _NewSubscription = ({ (props) => { props.label = "Address"; if ( - subscriptionAdressFormatRadio.startsWith("tags") && + subscriptionAdressFormatRadio.startsWith("tag") && radioState != "ethereum_whalewatch" ) { props.address = subscriptionAdressFormatRadio; - props.label = "tags: NFTs"; + props.label = "Tag"; } createSubscription.mutate({ @@ -165,7 +165,6 @@ const _NewSubscription = ({ (addition_selects) => { const radio = getRadioPropsSubscription({ value: addition_selects, - isDisabled: addition_selects.startsWith("tag"), }); return ( { const { subscriptionsCache, @@ -94,7 +99,11 @@ const SubscriptionsList = ({ emptyCTA }) => { - {subscription.address} + {subscription.address?.startsWith("tag") ? ( + {mapper[subscription.address]} + ) : ( + {subscription.address} + )}