File tree 2 files changed +12
-12
lines changed
quo/components/inputs/input
status_im/contexts/communities/actions/airdrop_addresses
2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 62
62
(defn- base-input
63
63
[{:keys [blur? error? right-icon left-icon disabled? small? button
64
64
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 ]
66
66
:as props}]
67
67
(let [theme (quo.theme/use-theme-value )
68
68
[status set-status] (rn/use-state :default )
119
119
(internal-on-focus ))
120
120
:on-blur (fn []
121
121
(when on-blur (on-blur ))
122
- (internal-on-blur ))}
122
+ (internal-on-blur ))
123
+ :auto-focus auto-focus}
123
124
:always (merge clean-props)
124
125
multiline? (assoc :multiline true
125
126
:on-content-size-change on-content-size-change)
Original file line number Diff line number Diff line change 41
41
(rf/dispatch
42
42
[:hide-bottom-sheet ]))}]))}]))
43
43
: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 ]))}]])}])
54
53
(do
55
54
(rf/dispatch [:communities/set-airdrop-address community-id address])
56
55
(rf/dispatch [:hide-bottom-sheet ])))))]
You can’t perform that action at this time.
0 commit comments