Skip to content

Commit b40e7a3

Browse files
committed
tweak: remove use of input-style and flex-direction column
1 parent b11de81 commit b40e7a3

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/quo/components/inputs/input/view.cljs

+3-5
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@
5757
"Custom properties that must be removed from properties map passed to InputText."
5858
[:type :blur? :error? :right-icon :left-icon :disabled? :small? :button
5959
:label :char-limit :on-char-limit-reach :icon-name :multiline? :on-focus :on-blur
60-
:container-style :input-container-style :input-style :ref])
60+
:container-style :input-container-style :ref])
6161

6262
(defn- base-input
6363
[{:keys [blur? error? right-icon left-icon disabled? small? button
6464
label char-limit multiline? clearable? on-focus on-blur container-style input-container-style
65-
input-style on-change-text on-char-limit-reach weight default-value on-clear]
65+
on-change-text on-char-limit-reach weight default-value on-clear]
6666
:as props}]
6767
(let [theme (quo.theme/use-theme-value)
6868
ref (rn/use-ref-atom nil)
@@ -124,9 +124,7 @@
124124
:icon-name icon-name}])
125125
[rn/text-input
126126
(cond-> {:ref on-ref
127-
:style (merge
128-
(style/input colors-by-status small? multiple-lines? weight)
129-
input-style)
127+
:style (style/input colors-by-status small? multiple-lines? weight)
130128
:accessibility-label :input
131129
:placeholder-text-color (:placeholder colors-by-status)
132130
:keyboard-appearance (quo.theme/theme-value :light :dark theme)

src/status_im/contexts/profile/contact/contact_request/style.cljs

-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@
88
(def message-input-wrapper
99
{:padding-vertical 8
1010
:flex-shrink 1
11-
:flex-direction :column
1211
:padding-horizontal 20})

src/status_im/contexts/profile/contact/contact_request/view.cljs

-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@
6060
:accessibility-label :contact-request-message
6161
:label (i18n/label :t/message)
6262
:on-change-text on-message-change
63-
:input-style {:flex 1
64-
:min-height "100%"}
6563
:container-style {:flex-shrink 1}
6664
:input-container-style {:flex-shrink 1}}]]
6765
[rn/view {:style {:flex 1}}

0 commit comments

Comments
 (0)