Skip to content

Commit

Permalink
chore(wallet): reset input on send flow when swapping accounts (#20099)
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Son89 authored May 24, 2024
1 parent d2fb6c7 commit 3a728fb
Show file tree
Hide file tree
Showing 5 changed files with 272 additions and 266 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
(h/render-with-theme-provider component :light))

(def props
{:theme :light
:state :default
{:state :default
:label "Mainnet"
:network-image 873
:customization-color :blue
Expand Down
1 change: 0 additions & 1 deletion src/quo/components/list_items/network_list/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
[:catn
[:props
[:map {:closed true}
[:theme :schema.common/theme]
[:network-image :int]
[:label :string]
[:fiat-value :string]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
:add-divider? true
:on-press #(rf/dispatch [:navigate-to :screen/wallet.enter-seed-phrase
{:recovering-keypair? true}])}
{:icon :i/key
:accessibility-label :import-private-key
:label (i18n/label :t/import-private-key)
:on-press (when (ff/enabled? ::wallet.import-private-key)
#(rf/dispatch [:navigate-to :screen/wallet.import-private-key]))}]]])
(when (ff/enabled? ::wallet.import-private-key)
{:icon :i/key
:accessibility-label :import-private-key
:label (i18n/label :t/import-private-key)
:on-press #(rf/dispatch [:navigate-to :screen/wallet.import-private-key])})]]])

(defn- parse-accounts
[given-accounts]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
:network-name :mainnet
:chain-id 1
:related-chain-id 5}]
:wallet/current-viewing-account-address "0x1"
:wallet/current-viewing-account {:path "m/44'/60'/0'/0/1"
:emoji "💎"
:key-uid "0x2f5ea39"
Expand Down
Loading

0 comments on commit 3a728fb

Please sign in to comment.