tweak: hide the options icon when the default key-pair has only 1 account or less
This commit is contained in:
parent
c16ab0d2de
commit
2648b2bc23
|
@ -47,12 +47,13 @@
|
||||||
:accessibility-label :title}
|
:accessibility-label :title}
|
||||||
[text/text {:weight :semi-bold}
|
[text/text {:weight :semi-bold}
|
||||||
(if (= type :default-keypair) (keypair-string full-name) full-name)]
|
(if (= type :default-keypair) (keypair-string full-name) full-name)]
|
||||||
(if (= action :selector)
|
(case action
|
||||||
[selectors/view
|
:none nil
|
||||||
{:type :radio
|
:selector [selectors/view
|
||||||
:checked? selected?
|
{:type :radio
|
||||||
:blur? blur?
|
:checked? selected?
|
||||||
:customization-color customization-color}]
|
:blur? blur?
|
||||||
|
:customization-color customization-color}]
|
||||||
[rn/pressable {:on-press on-options-press}
|
[rn/pressable {:on-press on-options-press}
|
||||||
[icon/icon :i/options
|
[icon/icon :i/options
|
||||||
{:color (if blur?
|
{:color (if blur?
|
||||||
|
|
|
@ -69,7 +69,10 @@
|
||||||
{:blur? true
|
{:blur? true
|
||||||
:status-indicator false
|
:status-indicator false
|
||||||
:stored :on-device
|
:stored :on-device
|
||||||
:action :options
|
:action (if (and default-keypair?
|
||||||
|
(<= 1 (count accounts)))
|
||||||
|
:none
|
||||||
|
:options)
|
||||||
:accounts accounts
|
:accounts accounts
|
||||||
:customization-color customization-color
|
:customization-color customization-color
|
||||||
:container-style style/keypair-container-style
|
:container-style style/keypair-container-style
|
||||||
|
|
Loading…
Reference in New Issue