mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 18:46:19 +00:00
remove overwritten events and subs
Signed-off-by: yenda <eric@status.im>
This commit is contained in:
parent
ecb71645c2
commit
0e25aa2f2a
@ -291,12 +291,6 @@
|
|||||||
(fn [network]
|
(fn [network]
|
||||||
(ethereum/network->chain-name network)))
|
(ethereum/network->chain-name network)))
|
||||||
|
|
||||||
(re-frame/reg-sub
|
|
||||||
:network-name
|
|
||||||
:<- [:current-network]
|
|
||||||
(fn [network]
|
|
||||||
(ethereum/network->network-name network)))
|
|
||||||
|
|
||||||
(re-frame/reg-sub
|
(re-frame/reg-sub
|
||||||
:chain-id
|
:chain-id
|
||||||
:<- [:current-network]
|
:<- [:current-network]
|
||||||
|
@ -36,11 +36,6 @@
|
|||||||
(fn [[pin puk]]
|
(fn [[pin puk]]
|
||||||
(if (zero? pin) puk pin)))
|
(if (zero? pin) puk pin)))
|
||||||
|
|
||||||
(re-frame/reg-sub
|
|
||||||
:hardwallet/puk-retry-counter
|
|
||||||
(fn [db]
|
|
||||||
(get-in db [:hardwallet :application-info :puk-retry-counter])))
|
|
||||||
|
|
||||||
(re-frame/reg-sub
|
(re-frame/reg-sub
|
||||||
:keycard-reset-card-disabled?
|
:keycard-reset-card-disabled?
|
||||||
(fn [db]
|
(fn [db]
|
||||||
|
@ -350,15 +350,6 @@
|
|||||||
[{:keys [db]} amount]
|
[{:keys [db]} amount]
|
||||||
{:db (assoc-in db [:wallet/prepare-transaction :amount-text] amount)})
|
{:db (assoc-in db [:wallet/prepare-transaction :amount-text] amount)})
|
||||||
|
|
||||||
(fx/defn set-symbol
|
|
||||||
{:events [:wallet.send/set-symbol]}
|
|
||||||
[{:keys [db]} symbol]
|
|
||||||
{:db (-> db
|
|
||||||
(assoc-in [:wallet :send-transaction :symbol] symbol)
|
|
||||||
(assoc-in [:wallet :send-transaction :amount] nil)
|
|
||||||
(assoc-in [:wallet :send-transaction :amount-text] nil)
|
|
||||||
(assoc-in [:wallet :send-transaction :asset-error] nil))})
|
|
||||||
|
|
||||||
(fx/defn sign-transaction-button-clicked
|
(fx/defn sign-transaction-button-clicked
|
||||||
{:events [:wallet.ui/sign-transaction-button-clicked]}
|
{:events [:wallet.ui/sign-transaction-button-clicked]}
|
||||||
[{:keys [db] :as cofx} {:keys [to amount from token from-chat? gas gasPrice]}]
|
[{:keys [db] :as cofx} {:keys [to amount from token from-chat? gas gasPrice]}]
|
||||||
@ -457,4 +448,4 @@
|
|||||||
:confirm-button-text (i18n/label :t/yes)
|
:confirm-button-text (i18n/label :t/yes)
|
||||||
:cancel-button-text (i18n/label :t/no)
|
:cancel-button-text (i18n/label :t/no)
|
||||||
:on-accept #(re-frame/dispatch [:wallet.accounts/delete-account account])
|
:on-accept #(re-frame/dispatch [:wallet.accounts/delete-account account])
|
||||||
:on-cancel #()}})
|
:on-cancel #()}})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user