parent
a13975f3f6
commit
da16d1f69e
|
@ -36,8 +36,10 @@
|
||||||
(defn- address-input
|
(defn- address-input
|
||||||
[{:keys [input-value on-change-text paste-into-input clear-input]}]
|
[{:keys [input-value on-change-text paste-into-input clear-input]}]
|
||||||
(let [empty-input? (string/blank? input-value)
|
(let [empty-input? (string/blank? input-value)
|
||||||
on-scan-address (rn/use-callback #(rf/dispatch [:open-modal :screen/wallet.scan-address
|
on-scan-address (rn/use-callback (fn []
|
||||||
{:on-result on-change-text}]))]
|
(rf/dispatch [:wallet/clean-scanned-address])
|
||||||
|
(rf/dispatch [:open-modal :screen/wallet.scan-address
|
||||||
|
{:on-result on-change-text}])))]
|
||||||
[rn/view {:style style/input-container}
|
[rn/view {:style style/input-container}
|
||||||
[quo/input
|
[quo/input
|
||||||
{:accessibility-label :add-address-to-save
|
{:accessibility-label :add-address-to-save
|
||||||
|
@ -161,7 +163,9 @@
|
||||||
(rf/dispatch
|
(rf/dispatch
|
||||||
[:open-modal :screen/settings.save-address]))
|
[:open-modal :screen/settings.save-address]))
|
||||||
[address ens-name? address-or-ens])]
|
[address ens-name? address-or-ens])]
|
||||||
(rn/use-unmount #(rf/dispatch [:wallet/clear-address-to-save]))
|
(rn/use-mount (fn []
|
||||||
|
(rf/dispatch [:wallet/clean-scanned-address])
|
||||||
|
(rf/dispatch [:wallet/clear-address-to-save])))
|
||||||
[quo/overlay {:type :shell}
|
[quo/overlay {:type :shell}
|
||||||
[floating-button-page/view
|
[floating-button-page/view
|
||||||
{:footer-container-padding 0
|
{:footer-container-padding 0
|
||||||
|
|
Loading…
Reference in New Issue