tweak: hide the options icon when the default key-pair has only 1 account or less

This commit is contained in:
Sean Hagstrom 2024-06-25 12:25:15 +01:00
parent c16ab0d2de
commit 2648b2bc23
No known key found for this signature in database
GPG Key ID: 5257FEDF56307320
2 changed files with 11 additions and 7 deletions

View File

@ -47,12 +47,13 @@
:accessibility-label :title}
[text/text {:weight :semi-bold}
(if (= type :default-keypair) (keypair-string full-name) full-name)]
(if (= action :selector)
[selectors/view
{:type :radio
:checked? selected?
:blur? blur?
:customization-color customization-color}]
(case action
:none nil
:selector [selectors/view
{:type :radio
:checked? selected?
:blur? blur?
:customization-color customization-color}]
[rn/pressable {:on-press on-options-press}
[icon/icon :i/options
{:color (if blur?

View File

@ -69,7 +69,10 @@
{:blur? true
:status-indicator false
:stored :on-device
:action :options
:action (if (and default-keypair?
(<= 1 (count accounts)))
:none
:options)
:accounts accounts
:customization-color customization-color
:container-style style/keypair-container-style