mirror of
https://github.com/status-im/status-react.git
synced 2025-02-05 23:54:59 +00:00
The wrong UI is applied for 'sync code' section when light mode is en… (#19110)
This commit is contained in:
parent
613e48ece3
commit
c02cc5d391
@ -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?
|
||||||
|
@ -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}
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user