Skip to content

Commit

Permalink
don't show bottom nav in wallet page
Browse files Browse the repository at this point in the history
  • Loading branch information
dreacot committed Sep 26, 2024
1 parent 1fc3d14 commit 4e392e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ui/page/governance/proposal_vote_modal.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ func (vm *voteModal) Handle(gtx C) {
vm.Dismiss()
selectedWallet, _ := vm.walletSelector.selectedWallet.(*dcr.Asset)
walletCallbackFunc := func() {
vm.ParentNavigator().CloseCurrentPage()
vm.ParentWindow().CloseCurrentPage()
}
swmp := wallet.NewSingleWalletMasterPage(vm.Load, selectedWallet, walletCallbackFunc)
vm.ParentNavigator().Display(swmp)
vm.ParentWindow().Display(swmp)
swmp.Display(staking.NewStakingPage(vm.Load, selectedWallet)) // Display staking page on the main page.]
swmp.PageNavigationTab.SetSelectedSegment(values.String(values.StrStaking))
}
Expand Down
8 changes: 4 additions & 4 deletions ui/page/root/overview_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,10 @@ func (pg *OverviewPage) HandleUserInteractions(gtx C) {
pg.showNavigationFunc(true)
walletCallbackFunc := func() {
pg.showNavigationFunc(false)
pg.ParentNavigator().CloseCurrentPage()
pg.ParentWindow().CloseCurrentPage()
}
swmp := wallet.NewSingleWalletMasterPage(pg.Load, selectedWallet, walletCallbackFunc)
pg.ParentNavigator().Display(swmp)
pg.ParentWindow().Display(swmp)
swmp.Display(privacy.NewAccountMixerPage(pg.Load, selectedWallet)) // Display mixer page on the main page.
swmp.PageNavigationTab.SetSelectedSegment(values.String(values.StrStakeShuffle))
}
Expand All @@ -276,10 +276,10 @@ func (pg *OverviewPage) HandleUserInteractions(gtx C) {
pg.showNavigationFunc(true)
callback := func() {
pg.showNavigationFunc(false)
pg.ParentNavigator().CloseCurrentPage()
pg.ParentWindow().CloseCurrentPage()
}
swmp := wallet.NewSingleWalletMasterPage(pg.Load, info.GetWallet(), callback)
pg.ParentNavigator().Display(swmp)
pg.ParentWindow().Display(swmp)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions ui/page/root/wallet_selector_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ func (pg *WalletSelectorPage) HandleUserInteractions(gtx C) {
pg.showNavigationFunc(true)

callback := func() {
pg.ParentNavigator().CloseCurrentPage()
pg.ParentWindow().CloseCurrentPage()
}
pg.ParentNavigator().Display(wallet.NewSingleWalletMasterPage(pg.Load, selectedWallet, callback))
pg.ParentWindow().Display(wallet.NewSingleWalletMasterPage(pg.Load, selectedWallet, callback))
}

for _, walletsOfType := range pg.badWalletsList {
Expand Down

0 comments on commit 4e392e1

Please sign in to comment.