(fix) modify disclaimer component for on tap UX (#15757)
This commit is contained in:
parent
51b9253734
commit
fac368521b
|
@ -5,15 +5,17 @@
|
||||||
[react-native.core :as rn]))
|
[react-native.core :as rn]))
|
||||||
|
|
||||||
(defn view
|
(defn view
|
||||||
[{:keys [checked? blur? on-change accessibility-label container-style]} label]
|
[{:keys [checked? blur? accessibility-label container-style on-change]} label]
|
||||||
[rn/view
|
[rn/touchable-opacity
|
||||||
{:style (merge container-style (style/container blur?))}
|
{:on-press on-change
|
||||||
[selectors/checkbox
|
:accessibility-label "disclaimer-touchable-opacity"}
|
||||||
{:accessibility-label accessibility-label
|
[rn/view {:style (merge container-style (style/container blur?))}
|
||||||
:blur? blur?
|
[selectors/checkbox
|
||||||
:checked? checked?
|
{:accessibility-label accessibility-label
|
||||||
:on-change on-change}]
|
:blur? blur?
|
||||||
[text/text
|
:checked? checked?
|
||||||
{:size :paragraph-2
|
:on-change on-change}]
|
||||||
:style style/text}
|
[text/text
|
||||||
label]])
|
{:size :paragraph-2
|
||||||
|
:style style/text}
|
||||||
|
label]]])
|
||||||
|
|
|
@ -166,7 +166,7 @@
|
||||||
[rn/view {:style style/disclaimer-container}
|
[rn/view {:style style/disclaimer-container}
|
||||||
[quo/disclaimer
|
[quo/disclaimer
|
||||||
{:blur? true
|
{:blur? true
|
||||||
:on-change #(reset! accepts-disclaimer? %)
|
:on-change #(swap! accepts-disclaimer? not)
|
||||||
:checked? @accepts-disclaimer?}
|
:checked? @accepts-disclaimer?}
|
||||||
(i18n/label :t/password-creation-disclaimer)]]
|
(i18n/label :t/password-creation-disclaimer)]]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue