Skip to content

Commit

Permalink
[DDW-350] Hide learn-more button on legacy wallet notification
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaglumac committed Aug 11, 2020
1 parent 2e30e34 commit b61bd15
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions source/renderer/app/components/notifications/LegacyNotification.js
Expand Up @@ -119,7 +119,7 @@ export default class LegacyNotification extends Component<Props> {
const { intl } = this.context;
const { onTransferFunds, hasRewardsWallets, onWalletAdd } = this.props;
const { getValue, onLearnMore } = this;

const showLearnMoreButton = false;
const moveFundsLink = (
<Link
className={styles.descriptionLink}
Expand Down Expand Up @@ -153,25 +153,25 @@ export default class LegacyNotification extends Component<Props> {
<p>{description2}</p>
</div>
<div className={styles.actions}>
<ButtonLink
className={styles.actionLearnMore}
onClick={onLearnMore}
skin={ButtonSkin}
label={intl.formatMessage(messages.actionLearnMore)}
linkProps={{
className: styles.externalLink,
hasIconBefore: false,
hasIconAfter: true,
}}
/>
{
<Button
className={styles.actionMove}
label={buttonLabel}
onClick={buttonAction}
{showLearnMoreButton && (
<ButtonLink
className={styles.actionLearnMore}
onClick={onLearnMore}
skin={ButtonSkin}
label={intl.formatMessage(messages.actionLearnMore)}
linkProps={{
className: styles.externalLink,
hasIconBefore: false,
hasIconAfter: true,
}}
/>
}
)}
<Button
className={styles.actionMove}
label={buttonLabel}
onClick={buttonAction}
skin={ButtonSkin}
/>
</div>
</div>
);
Expand Down

0 comments on commit b61bd15

Please sign in to comment.