Skip to content

Commit 44b8876

Browse files
committed
clean
1 parent 9582d89 commit 44b8876

File tree

2 files changed

+12
-12
lines changed
  • src
    • quo/components/inputs/input
    • status_im/contexts/communities/actions/airdrop_addresses

2 files changed

+12
-12
lines changed

src/quo/components/inputs/input/view.cljs

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
(defn- base-input
6363
[{:keys [blur? error? right-icon left-icon disabled? small? button
6464
label char-limit multiline? clearable? on-focus on-blur container-style
65-
on-change-text on-char-limit-reach weight default-value]
65+
on-change-text on-char-limit-reach weight default-value auto-focus]
6666
:as props}]
6767
(let [theme (quo.theme/use-theme-value)
6868
[status set-status] (rn/use-state :default)
@@ -119,7 +119,8 @@
119119
(internal-on-focus))
120120
:on-blur (fn []
121121
(when on-blur (on-blur))
122-
(internal-on-blur))}
122+
(internal-on-blur))
123+
:auto-focus auto-focus}
123124
:always (merge clean-props)
124125
multiline? (assoc :multiline true
125126
:on-content-size-change on-content-size-change)

src/status_im/contexts/communities/actions/airdrop_addresses/view.cljs

+9-10
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,15 @@
4141
(rf/dispatch
4242
[:hide-bottom-sheet]))}]))}]))
4343
:on-success (fn [password]
44-
(rf/dispatch
45-
[:communities/edit-shared-addresses
46-
{:community-id community-id
47-
:password password
48-
:airdrop-address address
49-
:on-success (fn []
50-
(rf/dispatch [:dismiss-modal
51-
:address-for-airdrop])
52-
(rf/dispatch
53-
[:hide-bottom-sheet]))}]))}])
44+
[:dispatch [:communities/edit-shared-addresses
45+
{:community-id community-id
46+
:password password
47+
:airdrop-address address
48+
:on-success (fn []
49+
(rf/dispatch [:dismiss-modal
50+
:address-for-airdrop])
51+
(rf/dispatch
52+
[:hide-bottom-sheet]))}]])}])
5453
(do
5554
(rf/dispatch [:communities/set-airdrop-address community-id address])
5655
(rf/dispatch [:hide-bottom-sheet])))))]

0 commit comments

Comments
 (0)