15
15
:title :t/wallet-manage-assets
16
16
:icon :main-icons/token
17
17
:accessibility-label :wallet-manage-assets
18
- :on-press #(hide-sheet-and-dispatch [:navigate-to :wallet-settings-assets ])}]
18
+ :on-press #(hide-sheet-and-dispatch
19
+ [:navigate-to :wallet-settings-assets ])}]
19
20
[list-item/list-item
20
21
{:theme :action
21
22
:title :t/set-currency
22
23
:icon :main-icons/language
23
24
:accessibility-label :wallet-set-currency
24
- :on-press #(hide-sheet-and-dispatch [:navigate-to :currency-settings ])}]
25
+ :on-press #(hide-sheet-and-dispatch
26
+ [:navigate-to :currency-settings ])}]
25
27
[list-item/list-item
26
28
{:theme :action
27
29
:title :t/view-signing
28
30
:icon :main-icons/info
29
- :on-press #(hide-sheet-and-dispatch [:show-popover {:view :signing-phrase }])}]
31
+ :on-press #(hide-sheet-and-dispatch
32
+ [:show-popover {:view :signing-phrase }])}]
30
33
(when mnemonic
31
34
[list-item/list-item
32
35
{:theme :action-destructive
33
36
:title :t/wallet-backup-recovery-title
34
37
:icon :main-icons/security
35
38
:accessibility-label :wallet-backup-recovery-title
36
- :on-press #(hide-sheet-and-dispatch [:navigate-to :backup-seed ])}])]))
39
+ :on-press #(hide-sheet-and-dispatch
40
+ [:navigate-to :backup-seed ])}])]))
37
41
38
42
(defn send-receive [account type]
39
43
[react/view
43
47
:title :t/wallet-send
44
48
:icon :main-icons/send
45
49
:accessibility-label :send-transaction-button
46
- :on-press #(hide-sheet-and-dispatch [:wallet/prepare-transaction-from-wallet account])}])
50
+ :on-press #(hide-sheet-and-dispatch
51
+ [:wallet/prepare-transaction-from-wallet account])}])
47
52
[list-item/list-item
48
53
{:theme :action
49
54
:title :t/receive
56
61
(defn add-account []
57
62
[react/view
58
63
[list-item/list-item
59
- {:theme :action
60
- :title :t/add-an-account
64
+ {:title :t/generate-a-new-account
65
+ :theme :action
61
66
:icon :main-icons/add
62
- :on-press #(hide-sheet-and-dispatch [:navigate-to :add-new-account ])}]
67
+ :on-press #(hide-sheet-and-dispatch
68
+ [:wallet.accounts/start-adding-new-account
69
+ {:type :generate }])}]
70
+ [list-item/list-item
71
+ {:theme :action
72
+ :title :t/add-a-watch-account
73
+ :icon :main-icons/watch
74
+ :on-press #(hide-sheet-and-dispatch
75
+ [:wallet.accounts/start-adding-new-account
76
+ {:type :watch }])}]
63
77
[list-item/list-item
64
- {:theme :action
65
- :title :t/add-a-watch-account
66
- :icon :main-icons/watch
67
- :on-press #(hide-sheet-and-dispatch [:wallet.accounts/start-adding-new-account {:type :watch }])}]])
78
+ {:title :t/enter-a-seed-phrase
79
+ :theme :action
80
+ :icon :main-icons/text
81
+ :on-press #(hide-sheet-and-dispatch
82
+ [:wallet.accounts/start-adding-new-account
83
+ {:type :seed }])}]
84
+ [list-item/list-item
85
+ {:title :t/enter-a-private-key
86
+ :theme :action
87
+ :icon :main-icons/address
88
+ :on-press #(hide-sheet-and-dispatch
89
+ [:wallet.accounts/start-adding-new-account
90
+ {:type :key }])}]])
68
91
69
92
(defn account-settings []
70
93
[react/view
71
94
[list-item/list-item
72
- {:theme :action
73
- :title :t/account-settings
95
+ {:theme :action
96
+ :title :t/account-settings
74
97
:accessibility-label :account-settings-bottom-sheet
75
- :icon :main-icons/info
76
- :on-press #(hide-sheet-and-dispatch [:navigate-to :account-settings ])}]
77
- ; ; Commented out for v1
78
- #_[list-item/list-item
79
- {:theme :action
80
- :title :t/export-account
81
- :icon :main-icons/copy
82
- :disabled? true }]])
98
+ :icon :main-icons/info
99
+ :on-press #(hide-sheet-and-dispatch
100
+ [:navigate-to :account-settings ])}]])
0 commit comments