Skip to content

Commit 11e1010

Browse files
authored
Merge branch 'develop' into 18874
2 parents 9af2fcf + 33e637f commit 11e1010

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

Diff for: src/quo/components/inputs/input/view.cljs

+4-3
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,17 @@
5555

5656
(def ^:private custom-props
5757
"Custom properties that must be removed from properties map passed to InputText."
58-
[:type :blur? :theme :error? :right-icon :left-icon :disabled? :small? :button
58+
[: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
6060
:container-style])
6161

6262
(defn- base-input
63-
[{:keys [blur? theme error? right-icon left-icon disabled? small? button
63+
[{:keys [blur? error? right-icon left-icon disabled? small? button
6464
label char-limit multiline? clearable? on-focus on-blur container-style
6565
on-change-text on-char-limit-reach weight default-value]
6666
:as props}]
67-
(let [[status set-status] (rn/use-state :default)
67+
(let [theme (quo.theme/use-theme-value)
68+
[status set-status] (rn/use-state :default)
6869
internal-on-focus (rn/use-callback #(set-status :focus))
6970
internal-on-blur (rn/use-callback #(set-status :default))
7071
[multiple-lines?

Diff for: src/react_native/core.cljs

+9-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,15 @@
2525

2626
(defn image
2727
[{:keys [source] :as props}]
28-
[image-native
29-
(if (string? source)
30-
(assoc props :source {:uri source})
31-
props)])
28+
(let [props (cond-> props
29+
platform/ios?
30+
(dissoc :resize-method)
31+
(and (:style props) platform/ios?)
32+
(update :style dissoc :resize-method))]
33+
[image-native
34+
(if (string? source)
35+
(assoc props :source {:uri source})
36+
props)]))
3237

3338
(defn image-get-size
3439
[uri]

Diff for: src/status_im/contexts/profile/edit/bio/view.cljs

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
[rn/view {:style {:gap 22}}
4545
[quo/text-combinations {:title (i18n/label :t/bio)}]
4646
[quo/input
47-
{:theme :dark
48-
:blur? true
47+
{:blur? true
4948
:multiline? true
5049
:error? (not (string/blank? @error-msg))
5150
:container-style {:margin-bottom -11}

Diff for: src/status_im/contexts/profile/edit/name/view.cljs

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
[rn/view {:style {:gap 22}}
4646
[quo/text-combinations {:title (i18n/label :t/name)}]
4747
[quo/input
48-
{:theme :dark
49-
:blur? true
48+
{:blur? true
5049
:error? (not (string/blank? @error-msg))
5150
:container-style {:margin-bottom -11}
5251
:default-value @full-name

Diff for: src/status_im/contexts/syncing/setup_syncing/view.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,5 @@
130130
[quo/divider-label {:tight? false} (i18n/label :t/have-a-sync-code?)]
131131
[quo/action-drawer
132132
[[{:icon :i/scan
133-
:on-press #(rf/dispatch [:navigate-to :scan-sync-code-page])
133+
:on-press #(rf/dispatch [:open-modal :scan-sync-code-page])
134134
:label (i18n/label :t/scan-or-enter-sync-code)}]]]]]])))

0 commit comments

Comments
 (0)