fix: add debounce to "Done" button in the recipient selection dialog
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
38125173cb
commit
5e1bd9ff48
|
@ -8,7 +8,8 @@
|
||||||
[status-im.ui.components.toolbar.view :as topbar]
|
[status-im.ui.components.toolbar.view :as topbar]
|
||||||
[status-im.ui.screens.wallet.components.styles :as styles]
|
[status-im.ui.screens.wallet.components.styles :as styles]
|
||||||
[status-im.ui.components.text-input.view :as text-input]
|
[status-im.ui.components.text-input.view :as text-input]
|
||||||
[status-im.ui.components.colors :as colors])
|
[status-im.ui.components.colors :as colors]
|
||||||
|
[status-im.utils.debounce :as debounce])
|
||||||
(:require-macros [status-im.utils.views :as views]))
|
(:require-macros [status-im.utils.views :as views]))
|
||||||
|
|
||||||
(defn separator []
|
(defn separator []
|
||||||
|
@ -27,7 +28,7 @@
|
||||||
[topbar/text-action
|
[topbar/text-action
|
||||||
{:disabled? (string/blank? content)
|
{:disabled? (string/blank? content)
|
||||||
:style {:margin-right 16}
|
:style {:margin-right 16}
|
||||||
:handler #(re-frame/dispatch [:wallet.send/set-recipient content])}
|
:handler #(debounce/dispatch-and-chill [:wallet.send/set-recipient content] 3000)}
|
||||||
(i18n/label :t/done)]])
|
(i18n/label :t/done)]])
|
||||||
|
|
||||||
(views/defview contact-code []
|
(views/defview contact-code []
|
||||||
|
|
Loading…
Reference in New Issue