ui: one door to the saved-wallet catalogue
All checks were successful
android-ci / android (pull_request) Successful in 15s
All checks were successful
android-ci / android (pull_request) Successful in 15s
The wallet tab was carrying "Saved wallets" twice: once as a top-bar action (the alpha screen's "Wallets" text link, which I kept when I moved the screen onto OwTopBar) and once in the hero card's header, where the plan puts it. Two controls that do the same thing on one page is how a screen starts to look unfinished. The hero header keeps it; the top bar is a title and nothing else.
This commit is contained in:
parent
0d0b0b975d
commit
ef149ac496
1 changed files with 4 additions and 13 deletions
|
|
@ -214,19 +214,10 @@ fun WalletScreen(
|
|||
contentWindowInsets = WindowInsets(0, 0, 0, 0),
|
||||
containerColor = OwColors.Canvas,
|
||||
topBar = {
|
||||
OwTopBar(
|
||||
title = "Wallet",
|
||||
// The saved-wallet catalogue is its own screen: this one is the
|
||||
// open wallet, and switching wallets restarts the wallet
|
||||
// process, so the picker does not belong in this page's scroll.
|
||||
actions = {
|
||||
OwButton(
|
||||
text = "Saved wallets",
|
||||
variant = OwButtonVariant.Outline,
|
||||
onClick = onOpenWallets,
|
||||
)
|
||||
},
|
||||
)
|
||||
// No actions: the catalogue's entry point is in the hero card's
|
||||
// header, where the plan puts it. A second "Saved wallets" button
|
||||
// here would be two doors to one screen on the same page.
|
||||
OwTopBar(title = "Wallet")
|
||||
},
|
||||
) { pad ->
|
||||
Column(
|
||||
|
|
|
|||
Loading…
Reference in a new issue