Skip to content

Commit

Permalink
[DW-749] remove unused variables from staking after alonzo tada removal
Browse files Browse the repository at this point in the history
  • Loading branch information
mchappell committed Oct 12, 2021
1 parent 706ef51 commit 2da12a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 7 additions & 0 deletions source/renderer/app/containers/TopBarContainer.js
Expand Up @@ -4,6 +4,7 @@ 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 Down Expand Up @@ -57,6 +58,12 @@ 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 Down
7 changes: 1 addition & 6 deletions source/renderer/app/containers/staking/Staking.js
Expand Up @@ -76,12 +76,7 @@ export default class Staking extends Component<Props> {
stores: { app, staking, networkStatus, uiDialogs },
children,
} = this.props;
const {
isSynced,
syncPercentage,
isAlonzoPending,
isAlonzoActivated,
} = networkStatus;
const { isSynced, syncPercentage } = networkStatus;
const { isStakingDelegationCountdown } = staking;
const shouldShowInfoTab = IS_STAKING_INFO_PAGE_AVAILABLE;

Expand Down

0 comments on commit 2da12a1

Please sign in to comment.