File tree 3 files changed +6
-5
lines changed
src/status_im/ui/screens/wallet
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 54
54
:on-press #(hide-sheet-and-dispatch
55
55
[:navigate-to :backup-seed ])}])]))
56
56
57
- (defn account-card-actions [account type]
57
+ (defn account-card-actions [account type wallet ]
58
58
[react/view
59
59
(when-not (= type :watch )
60
60
[quo/list-item
71
71
:accessibility-label :share-account-button
72
72
:on-press #(hide-sheet-and-dispatch
73
73
[:wallet/share-popover (:address account)])}]
74
- (when type
74
+ (when-not wallet
75
75
[quo/list-item
76
76
{:theme :accent
77
77
:title (i18n/label :t/hide )
Original file line number Diff line number Diff line change 17
17
[status-im.keycard.login :as keycard.login])
18
18
(:require-macros [status-im.utils.views :as views]))
19
19
20
- (views/defview account-card [{:keys [name color address type] :as account} keycard? card-width]
20
+ (views/defview account-card [{:keys [name color address type wallet ] :as account} keycard? card-width]
21
21
(views/letsubs [currency [:wallet/currency ]
22
22
portfolio-value [:account-portfolio-value address]
23
23
prices-loading? [:prices-loading? ]]
48
48
[react/touchable-highlight
49
49
{:style styles/card-icon-more
50
50
:on-press #(re-frame/dispatch [:bottom-sheet/show-sheet
51
- {:content (fn [] [sheets/account-card-actions account type])
51
+ {:content (fn [] [sheets/account-card-actions account type wallet ])
52
52
:content-height 130 }])}
53
53
[icons/icon :main-icons/more {:color colors/white-persist}]]]]]))
54
54
Original file line number Diff line number Diff line change 11
11
(fn [_ [_ old-item] [_ new-item]]
12
12
(not= (:hidden old-item) (:hidden new-item)))
13
13
:reagent-render
14
- (fn [{:keys [hidden name address] :as account}]
14
+ (fn [{:keys [hidden name address wallet ] :as account}]
15
15
[quo/list-item
16
16
{:active (not hidden)
17
17
:accessory :checkbox
18
18
:animated-accessory? false
19
19
:animated false
20
+ :disabled wallet
20
21
:title name
21
22
:subtitle (utils/get-shortened-checksum-address address)
22
23
:on-press #(>evt [:wallet.accounts/save-account account {:hidden (not hidden)}])}])}))
You can’t perform that action at this time.
0 commit comments