Fix desktop signin text input field
This commit is contained in:
parent
198596d5e6
commit
3d09252bb1
|
@ -2,6 +2,7 @@
|
||||||
(:require [status-im.ui.components.react :as react]
|
(:require [status-im.ui.components.react :as react]
|
||||||
[status-im.ui.components.text-input.styles :as styles]
|
[status-im.ui.components.text-input.styles :as styles]
|
||||||
[status-im.ui.components.colors :as colors]
|
[status-im.ui.components.colors :as colors]
|
||||||
|
[status-im.utils.platform :as platform]
|
||||||
[status-im.ui.components.tooltip.views :as tooltip]))
|
[status-im.ui.components.tooltip.views :as tooltip]))
|
||||||
|
|
||||||
(defn text-input-with-label [{:keys [label content error style height container text] :as props}]
|
(defn text-input-with-label [{:keys [label content error style height container text] :as props}]
|
||||||
|
@ -15,9 +16,10 @@
|
||||||
{:style (merge styles/input style)
|
{:style (merge styles/input style)
|
||||||
:placeholder-text-color colors/gray
|
:placeholder-text-color colors/gray
|
||||||
:auto-focus true
|
:auto-focus true
|
||||||
:value text
|
|
||||||
:auto-capitalize :none}
|
:auto-capitalize :none}
|
||||||
(dissoc props :style :height))]
|
(dissoc props :style :height)
|
||||||
|
(when-not platform/desktop?
|
||||||
|
{:value text}))]
|
||||||
(when content content)]
|
(when content content)]
|
||||||
(when error
|
(when error
|
||||||
[tooltip/tooltip error (styles/error label)])])
|
[tooltip/tooltip error (styles/error label)])])
|
||||||
|
|
Loading…
Reference in New Issue