Skip to content

Commit

Permalink
Merge pull request #11632 from brave/rewards-remove-manage-your-walle…
Browse files Browse the repository at this point in the history
…t-on-android

Don't show Manage Wallet button on Android
  • Loading branch information
emerick authored Dec 20, 2021
2 parents 400b00d + aefd19a commit af48dfe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ interface State {
}

interface Props extends Rewards.ComponentProps {
showManageWalletButton: boolean
}

class PageWallet extends React.Component<Props, State> {
Expand Down Expand Up @@ -864,7 +865,7 @@ class PageWallet extends React.Component<Props, State> {
onExternalWalletAction={this.onExternalWalletAction}
onViewPendingTips={undefined}
/>
<ManageWalletButton onClick={this.onModalBackupOpen} />
{ this.props.showManageWalletButton && <ManageWalletButton onClick={this.onModalBackupOpen} /> }
{
modalBackup
? <ModalBackupRestore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class SettingsPage extends React.Component<Props, State> {
return (
<Page>
{this.getPromotionsClaims()}
<PageWallet />
<PageWallet showManageWalletButton={false} />
{this.getRedirectModal()}
{this.renderSettings()}
</Page>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ interface State {
}

interface Props extends Rewards.ComponentProps {
showManageWalletButton: boolean
}

class PageWallet extends React.Component<Props, State> {
Expand Down Expand Up @@ -865,7 +866,7 @@ class PageWallet extends React.Component<Props, State> {
onViewPendingTips={this.onModalPendingToggle}
onViewStatement={this.onModalActivityToggle}
/>
<ManageWalletButton onClick={this.onModalBackupOpen} />
{ this.props.showManageWalletButton && <ManageWalletButton onClick={this.onModalBackupOpen} /> }
{
modalBackup
? <ModalBackupRestore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ class SettingsPage extends React.Component<Props, State> {
</Column>
<Column size={1} customStyle={{ flexDirection: 'column' }}>
{this.getPromotionsClaims()}
<PageWallet />
<PageWallet showManageWalletButton={true} />
{this.renderPromos()}
</Column>
</Grid>
Expand Down

0 comments on commit af48dfe

Please sign in to comment.