File tree 2 files changed +19
-13
lines changed
2 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 39
39
(fn []
40
40
[network-preferences/view
41
41
{:blur? true
42
- :selected-networks (set selected-networks)
42
+ :selected-networks (set @ selected-networks)
43
43
:on-save (fn [chain-ids]
44
44
(rf/dispatch [:hide-bottom-sheet ])
45
45
(reset! selected-networks (map #(get utils/id->network %)
48
48
[props]
49
49
(let [{:keys [account width index]} props
50
50
selected-networks (reagent/atom [:ethereum :optimism :arbitrum ])
51
- wallet-type (reagent/atom :legacy )]
51
+ wallet-type (reagent/atom :legacy )
52
+ on-settings-press #(open-preferences selected-networks)
53
+ on-legacy-press #(reset! wallet-type :legacy )
54
+ on-multichain-press #(reset! wallet-type :multichain )]
52
55
(fn []
53
56
(let [share-title (str (:name account) " " (i18n/label :t/address ))
54
57
qr-url (utils/get-wallet-qr {:wallet-type @wallet-type
72
75
:full-name (:name account)
73
76
:customization-color (:color account)
74
77
:emoji (:emoji account)
75
- :on-multichain-press #( reset! wallet-type : multichain)
76
- :on-legacy-press #( reset! wallet-type : legacy)
77
- :on-settings-press #( open-preferences @selected-networks) }]]]))))
78
+ :on-multichain-press on- multichain-press
79
+ :on-legacy-press on- legacy-press
80
+ :on-settings-press on-settings-press }]]]))))
78
81
79
82
(def wallet-qr-code-item (memoize wallet-qr-code-item-internal))
80
83
Original file line number Diff line number Diff line change 48
48
49
49
(defn view
50
50
[]
51
- (let [padding-top (:top (safe-area/get-insets ))
52
- wallet-type (reagent/atom :legacy )
53
- ; ; Design team is yet to confirm the default selected networks here.
54
- ; ; Should be the current selected for the account or all the networks always
55
- selected-networks (reagent/atom [:ethereum :optimism :arbitrum ])]
51
+ (let [padding-top (:top (safe-area/get-insets ))
52
+ wallet-type (reagent/atom :legacy )
53
+ ; ; Design team is yet to confirm the default selected networks here. Should be the current
54
+ ; ; selected for the account or all the networks always
55
+ selected-networks (reagent/atom [:ethereum :optimism :arbitrum ])
56
+ on-settings-press #(open-preferences selected-networks)
57
+ on-legacy-press #(reset! wallet-type :legacy )
58
+ on-multichain-press #(reset! wallet-type :multichain )]
56
59
(fn []
57
60
(let [{:keys [address color emoji watch-only?]
58
61
:as account} (rf/sub [:wallet/current-viewing-account ])
97
100
:full-name (:name account)
98
101
:customization-color color
99
102
:emoji emoji
100
- :on-legacy-press #( reset! wallet-type : legacy)
101
- :on-multichain-press #( reset! wallet-type : multichain)
102
- :on-settings-press #( open-preferences selected-networks) }]]]]))))
103
+ :on-legacy-press on- legacy-press
104
+ :on-multichain-press on- multichain-press
105
+ :on-settings-press on-settings-press }]]]]))))
You can’t perform that action at this time.
0 commit comments