The wrong UI is applied for 'sync code' section when light mode is en… (#19110)

This commit is contained in:
flexsurfer 2024-03-05 18:59:02 +01:00 committed by GitHub
parent 613e48ece3
commit c02cc5d391
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 7 deletions

View File

@ -55,16 +55,17 @@
(def ^:private custom-props (def ^:private custom-props
"Custom properties that must be removed from properties map passed to InputText." "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 :label :char-limit :on-char-limit-reach :icon-name :multiline? :on-focus :on-blur
:container-style]) :container-style])
(defn- base-input (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 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]
:as props}] :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-focus (rn/use-callback #(set-status :focus))
internal-on-blur (rn/use-callback #(set-status :default)) internal-on-blur (rn/use-callback #(set-status :default))
[multiple-lines? [multiple-lines?

View File

@ -44,8 +44,7 @@
[rn/view {:style {:gap 22}} [rn/view {:style {:gap 22}}
[quo/text-combinations {:title (i18n/label :t/bio)}] [quo/text-combinations {:title (i18n/label :t/bio)}]
[quo/input [quo/input
{:theme :dark {:blur? true
:blur? true
:multiline? true :multiline? true
:error? (not (string/blank? @error-msg)) :error? (not (string/blank? @error-msg))
:container-style {:margin-bottom -11} :container-style {:margin-bottom -11}

View File

@ -45,8 +45,7 @@
[rn/view {:style {:gap 22}} [rn/view {:style {:gap 22}}
[quo/text-combinations {:title (i18n/label :t/name)}] [quo/text-combinations {:title (i18n/label :t/name)}]
[quo/input [quo/input
{:theme :dark {:blur? true
:blur? true
:error? (not (string/blank? @error-msg)) :error? (not (string/blank? @error-msg))
:container-style {:margin-bottom -11} :container-style {:margin-bottom -11}
:default-value @full-name :default-value @full-name