Skip to content

Commit

Permalink
[DDW-749] Remove tada button from top navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
mchappell committed Oct 12, 2021
1 parent edcfacf commit 6e484ed
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions source/renderer/app/containers/TopBarContainer.js
Expand Up @@ -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';
Expand All @@ -30,17 +29,7 @@ export default class TopBarContainer extends Component<Props> {
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,
Expand All @@ -67,12 +56,6 @@ export default class TopBarContainer extends Component<Props> {
});
};

const onClickTadaButton = () => {
actions.router.goToRoute.trigger({
route: ROUTES.STAKING.INFO,
});
};

const onTransferFunds = (sourceWalletId: string) =>
actions.wallets.transferFundsSetSourceWalletId.trigger({
sourceWalletId,
Expand All @@ -98,14 +81,8 @@ export default class TopBarContainer extends Component<Props> {
<NodeSyncStatusIcon
isSynced={isSynced}
syncPercentage={syncPercentage}
hasTadaIcon={shouldShowTadaIcon}
hasTadaIcon={false}
/>
{shouldShowTadaIcon && (
<TadaButton
onClick={onClickTadaButton}
shouldAnimate={shouldShowTadaIconAnimation}
/>
)}
<NewsFeedIcon
onNewsFeedIconClick={actions.app.toggleNewsFeed.trigger}
hasNotification={hasUnreadNews}
Expand Down

0 comments on commit 6e484ed

Please sign in to comment.