From c02cc5d3915bd69fb416cf3a669bffbca97ded51 Mon Sep 17 00:00:00 2001 From: flexsurfer Date: Tue, 5 Mar 2024 18:59:02 +0100 Subject: [PATCH] =?UTF-8?q?The=20wrong=20UI=20is=20applied=20for=20'sync?= =?UTF-8?q?=20code'=20section=20when=20light=20mode=20is=20en=E2=80=A6=20(?= =?UTF-8?q?#19110)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/quo/components/inputs/input/view.cljs | 7 ++++--- src/status_im/contexts/profile/edit/bio/view.cljs | 3 +-- src/status_im/contexts/profile/edit/name/view.cljs | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/quo/components/inputs/input/view.cljs b/src/quo/components/inputs/input/view.cljs index a5e2b880e9..77b682b6a8 100644 --- a/src/quo/components/inputs/input/view.cljs +++ b/src/quo/components/inputs/input/view.cljs @@ -55,16 +55,17 @@ (def ^:private custom-props "Custom properties that must be removed from properties map passed to InputText." - [:type :blur? :theme :error? :right-icon :left-icon :disabled? :small? :button + [:type :blur? :error? :right-icon :left-icon :disabled? :small? :button :label :char-limit :on-char-limit-reach :icon-name :multiline? :on-focus :on-blur :container-style]) (defn- base-input - [{:keys [blur? theme error? right-icon left-icon disabled? small? button + [{: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] :as props}] - (let [[status set-status] (rn/use-state :default) + (let [theme (quo.theme/use-theme-value) + [status set-status] (rn/use-state :default) internal-on-focus (rn/use-callback #(set-status :focus)) internal-on-blur (rn/use-callback #(set-status :default)) [multiple-lines? diff --git a/src/status_im/contexts/profile/edit/bio/view.cljs b/src/status_im/contexts/profile/edit/bio/view.cljs index b67d58a148..cc7ce9336d 100644 --- a/src/status_im/contexts/profile/edit/bio/view.cljs +++ b/src/status_im/contexts/profile/edit/bio/view.cljs @@ -44,8 +44,7 @@ [rn/view {:style {:gap 22}} [quo/text-combinations {:title (i18n/label :t/bio)}] [quo/input - {:theme :dark - :blur? true + {:blur? true :multiline? true :error? (not (string/blank? @error-msg)) :container-style {:margin-bottom -11} diff --git a/src/status_im/contexts/profile/edit/name/view.cljs b/src/status_im/contexts/profile/edit/name/view.cljs index 6d9ca85975..0a1295f9c6 100644 --- a/src/status_im/contexts/profile/edit/name/view.cljs +++ b/src/status_im/contexts/profile/edit/name/view.cljs @@ -45,8 +45,7 @@ [rn/view {:style {:gap 22}} [quo/text-combinations {:title (i18n/label :t/name)}] [quo/input - {:theme :dark - :blur? true + {:blur? true :error? (not (string/blank? @error-msg)) :container-style {:margin-bottom -11} :default-value @full-name