From 44b887684771358a8ec00252e3c154a7803b5f2d Mon Sep 17 00:00:00 2001 From: Ibrahem Khalil Date: Wed, 20 Mar 2024 11:02:01 +0200 Subject: [PATCH] clean --- src/quo/components/inputs/input/view.cljs | 5 +++-- .../actions/airdrop_addresses/view.cljs | 19 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/quo/components/inputs/input/view.cljs b/src/quo/components/inputs/input/view.cljs index 77b682b6a81e..0e4a8c9a488d 100644 --- a/src/quo/components/inputs/input/view.cljs +++ b/src/quo/components/inputs/input/view.cljs @@ -62,7 +62,7 @@ (defn- base-input [{:keys [blur? error? right-icon left-icon disabled? small? button label char-limit multiline? clearable? on-focus on-blur container-style - on-change-text on-char-limit-reach weight default-value] + on-change-text on-char-limit-reach weight default-value auto-focus] :as props}] (let [theme (quo.theme/use-theme-value) [status set-status] (rn/use-state :default) @@ -119,7 +119,8 @@ (internal-on-focus)) :on-blur (fn [] (when on-blur (on-blur)) - (internal-on-blur))} + (internal-on-blur)) + :auto-focus auto-focus} :always (merge clean-props) multiline? (assoc :multiline true :on-content-size-change on-content-size-change) diff --git a/src/status_im/contexts/communities/actions/airdrop_addresses/view.cljs b/src/status_im/contexts/communities/actions/airdrop_addresses/view.cljs index db97f5bfb7ad..43cab9db0fee 100644 --- a/src/status_im/contexts/communities/actions/airdrop_addresses/view.cljs +++ b/src/status_im/contexts/communities/actions/airdrop_addresses/view.cljs @@ -41,16 +41,15 @@ (rf/dispatch [:hide-bottom-sheet]))}]))}])) :on-success (fn [password] - (rf/dispatch - [:communities/edit-shared-addresses - {:community-id community-id - :password password - :airdrop-address address - :on-success (fn [] - (rf/dispatch [:dismiss-modal - :address-for-airdrop]) - (rf/dispatch - [:hide-bottom-sheet]))}]))}]) + [:dispatch [:communities/edit-shared-addresses + {:community-id community-id + :password password + :airdrop-address address + :on-success (fn [] + (rf/dispatch [:dismiss-modal + :address-for-airdrop]) + (rf/dispatch + [:hide-bottom-sheet]))}]])}]) (do (rf/dispatch [:communities/set-airdrop-address community-id address]) (rf/dispatch [:hide-bottom-sheet])))))]