mirror of
https://github.com/status-im/status-react.git
synced 2025-02-02 22:25:12 +00:00
react switch warnings fix
Signed-off-by: yenda <eric@status.im>
This commit is contained in:
parent
3134d1dfce
commit
0d2be79452
@ -145,7 +145,7 @@
|
|||||||
[react/text {:style (assoc (styles/adv-settings-row-text colors/black)
|
[react/text {:style (assoc (styles/adv-settings-row-text colors/black)
|
||||||
:font-size 14)}
|
:font-size 14)}
|
||||||
(i18n/label :t/logging-enabled)]
|
(i18n/label :t/logging-enabled)]
|
||||||
[react/switch {:on-tint-color colors/blue
|
[react/switch {:track-color #js {:true colors/blue :false nil}
|
||||||
:value logging-enabled
|
:value logging-enabled
|
||||||
:on-value-change #(re-frame/dispatch [:log-level.ui/logging-enabled (not logging-enabled)])}]]
|
:on-value-change #(re-frame/dispatch [:log-level.ui/logging-enabled (not logging-enabled)])}]]
|
||||||
[react/view {:style (styles/adv-settings-row false)}
|
[react/view {:style (styles/adv-settings-row false)}
|
||||||
@ -217,7 +217,7 @@
|
|||||||
[react/text {:style styles/adv-settings-subtitle} (i18n/label :t/pfs)]
|
[react/text {:style styles/adv-settings-subtitle} (i18n/label :t/pfs)]
|
||||||
[react/view {:style (styles/profile-row false)}
|
[react/view {:style (styles/profile-row false)}
|
||||||
[react/text {:style (styles/profile-row-text colors/black)} (i18n/label :t/pfs)]
|
[react/text {:style (styles/profile-row-text colors/black)} (i18n/label :t/pfs)]
|
||||||
[react/switch {:on-tint-color colors/blue
|
[react/switch {:track-color #js {:true colors/blue :false nil}
|
||||||
:value pfs?
|
:value pfs?
|
||||||
:on-value-change #(re-frame/dispatch [:accounts.ui/toggle-pfs (not pfs?)])}]]])))
|
:on-value-change #(re-frame/dispatch [:accounts.ui/toggle-pfs (not pfs?)])}]]])))
|
||||||
|
|
||||||
@ -292,7 +292,7 @@
|
|||||||
[share-contact-code]
|
[share-contact-code]
|
||||||
[react/view {:style (styles/profile-row false)}
|
[react/view {:style (styles/profile-row false)}
|
||||||
[react/text {:style (styles/profile-row-text colors/black)} (i18n/label :notifications)]
|
[react/text {:style (styles/profile-row-text colors/black)} (i18n/label :notifications)]
|
||||||
[react/switch {:on-tint-color colors/blue
|
[react/switch {:track-color #js {:true colors/blue :false nil}
|
||||||
:value notifications?
|
:value notifications?
|
||||||
:on-value-change #(re-frame/dispatch [:accounts.ui/notifications-enabled (not notifications?)])}]]
|
:on-value-change #(re-frame/dispatch [:accounts.ui/notifications-enabled (not notifications?)])}]]
|
||||||
[advanced-settings-item adv-settings-open?]
|
[advanced-settings-item adv-settings-open?]
|
||||||
|
@ -140,7 +140,7 @@
|
|||||||
;; Replacing therefore with checkbox until I have more time to investigate
|
;; Replacing therefore with checkbox until I have more time to investigate
|
||||||
(checkbox.views/checkbox {:checked? enabled?
|
(checkbox.views/checkbox {:checked? enabled?
|
||||||
:on-value-change (partial toggle-enabled! installation-id enabled?)})
|
:on-value-change (partial toggle-enabled! installation-id enabled?)})
|
||||||
[react/switch {:on-tint-color colors/blue
|
[react/switch {:track-color #js {:true colors/blue :false nil}
|
||||||
:value enabled?
|
:value enabled?
|
||||||
:on-value-change (partial toggle-enabled! installation-id enabled?)}])]]])
|
:on-value-change (partial toggle-enabled! installation-id enabled?)}])]]])
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@
|
|||||||
[react/view styles/settings-item
|
[react/view styles/settings-item
|
||||||
[react/view styles/settings-item-text-wrapper
|
[react/view styles/settings-item-text-wrapper
|
||||||
[react/i18n-text {:style styles/settings-item-text :key label-kw}]]
|
[react/i18n-text {:style styles/settings-item-text :key label-kw}]]
|
||||||
[react/switch {:on-tint-color colors/blue
|
[react/switch {:track-color #js {:true colors/blue :false nil}
|
||||||
:value (boolean value)
|
:value (boolean value)
|
||||||
:on-value-change action-fn
|
:on-value-change action-fn
|
||||||
:disabled (not active?)}]])
|
:disabled (not active?)}]])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user