[#11651] No spinner when pressing "Fetch more messages" in public chat + white toggles in Sync settings on Android

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2021-01-27 10:51:46 +01:00
parent ff961bbfe8
commit 6469ff912a
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
2 changed files with 3 additions and 3 deletions

View File

@ -59,10 +59,10 @@
(def activity-indicator-class (reagent/adapt-react-class (.-ActivityIndicator react-native)))
(defn activity-indicator [props]
[activity-indicator-class props])
[activity-indicator-class (update props :color #(or % colors/gray))])
(defn small-loading-indicator [color]
[activity-indicator {:color (if color color :colors/gray)
[activity-indicator {:color color
:ios {:size :small}
:android {:size :16}}])

View File

@ -46,7 +46,7 @@
[react/view styles/settings-item
[react/view styles/settings-item-text-wrapper
[react/i18n-text {:style styles/settings-item-text :key label-kw}]]
[react/switch {:track-color #js {:true colors/blue :false nil}
[react/switch {:track-color #js {:true colors/blue :false colors/gray-lighter}
:value (boolean value)
:on-value-change action-fn
:disabled (not active?)}]])