From 6e484ed0df8a181e6167578f17c69e514fa36623 Mon Sep 17 00:00:00 2001 From: Michael Chappell Date: Tue, 12 Oct 2021 07:27:48 +0100 Subject: [PATCH] [DDW-749] Remove tada button from top navigation --- .../app/containers/TopBarContainer.js | 27 ++----------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/source/renderer/app/containers/TopBarContainer.js b/source/renderer/app/containers/TopBarContainer.js index cbe557dd9f..0b76d03710 100644 --- a/source/renderer/app/containers/TopBarContainer.js +++ b/source/renderer/app/containers/TopBarContainer.js @@ -4,7 +4,6 @@ import { observer, inject } from 'mobx-react'; import TopBar from '../components/layout/TopBar'; import NodeSyncStatusIcon from '../components/widgets/NodeSyncStatusIcon'; import NewsFeedIcon from '../components/widgets/NewsFeedIcon'; -import TadaButton from '../components/widgets/TadaButton'; import WalletTestEnvironmentLabel from '../components/widgets/WalletTestEnvironmentLabel'; import type { InjectedProps } from '../types/injectedPropsType'; import menuIconOpened from '../assets/images/menu-opened-ic.inline.svg'; @@ -30,17 +29,7 @@ export default class TopBarContainer extends Component { appUpdate, staking, } = stores; - const { - isSynced, - syncPercentage, - isShelleyActivated, - isAlonzoActivated, - isAlonzoPending, - } = networkStatus; - const { stakingInfoWasOpen } = staking; - const shouldShowTadaIconAnimation = - isAlonzoActivated && !stakingInfoWasOpen; - const shouldShowTadaIcon = isAlonzoPending || isAlonzoActivated; + const { isSynced, syncPercentage, isShelleyActivated } = networkStatus; const { active, isWalletRoute, hasAnyWallets, hasRewardsWallets } = wallets; const { currentRoute, @@ -67,12 +56,6 @@ export default class TopBarContainer extends Component { }); }; - const onClickTadaButton = () => { - actions.router.goToRoute.trigger({ - route: ROUTES.STAKING.INFO, - }); - }; - const onTransferFunds = (sourceWalletId: string) => actions.wallets.transferFundsSetSourceWalletId.trigger({ sourceWalletId, @@ -98,14 +81,8 @@ export default class TopBarContainer extends Component { - {shouldShowTadaIcon && ( - - )}