Skip to content

Commit b358499

Browse files
committed
fix review
1 parent 1702fdc commit b358499

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/status_im/ui/screens/wallet/accounts/sheets.cljs

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
:on-press #(hide-sheet-and-dispatch
5555
[:navigate-to :backup-seed])}])]))
5656

57-
(defn account-card-actions [account type]
57+
(defn account-card-actions [account type wallet]
5858
[react/view
5959
(when-not (= type :watch)
6060
[quo/list-item
@@ -71,7 +71,7 @@
7171
:accessibility-label :share-account-button
7272
:on-press #(hide-sheet-and-dispatch
7373
[:wallet/share-popover (:address account)])}]
74-
(when type
74+
(when-not wallet
7575
[quo/list-item
7676
{:theme :accent
7777
:title (i18n/label :t/hide)

src/status_im/ui/screens/wallet/accounts/views.cljs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
[status-im.keycard.login :as keycard.login])
1818
(:require-macros [status-im.utils.views :as views]))
1919

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]
2121
(views/letsubs [currency [:wallet/currency]
2222
portfolio-value [:account-portfolio-value address]
2323
prices-loading? [:prices-loading?]]
@@ -48,7 +48,7 @@
4848
[react/touchable-highlight
4949
{:style styles/card-icon-more
5050
: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])
5252
:content-height 130}])}
5353
[icons/icon :main-icons/more {:color colors/white-persist}]]]]]))
5454

src/status_im/ui/screens/wallet/accounts_manage/views.cljs

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
(fn [_ [_ old-item] [_ new-item]]
1212
(not= (:hidden old-item) (:hidden new-item)))
1313
:reagent-render
14-
(fn [{:keys [hidden name address] :as account}]
14+
(fn [{:keys [hidden name address wallet] :as account}]
1515
[quo/list-item
1616
{:active (not hidden)
1717
:accessory :checkbox
1818
:animated-accessory? false
1919
:animated false
20+
:disabled wallet
2021
:title name
2122
:subtitle (utils/get-shortened-checksum-address address)
2223
:on-press #(>evt [:wallet.accounts/save-account account {:hidden (not hidden)}])}])}))

0 commit comments

Comments
 (0)