fix peer count invisible in Light mode (#20733)
This commit is contained in:
parent
20b256b0d0
commit
6553d5ca44
|
@ -1,12 +1,14 @@
|
||||||
(ns legacy.status-im.ui.screens.peers-stats
|
(ns legacy.status-im.ui.screens.peers-stats
|
||||||
(:require
|
(:require
|
||||||
|
[quo.foundations.colors :as colors]
|
||||||
[react-native.core :as rn]
|
[react-native.core :as rn]
|
||||||
[utils.i18n :as i18n]
|
[utils.i18n :as i18n]
|
||||||
[utils.re-frame :as rf]))
|
[utils.re-frame :as rf]))
|
||||||
|
|
||||||
(defn peers-stats
|
(defn peers-stats
|
||||||
[]
|
[]
|
||||||
(let [peers-count (rf/sub [:peer-stats/count])]
|
(let [peers-count (rf/sub [:peer-stats/count])
|
||||||
|
theme (rf/sub [:theme])]
|
||||||
(rn/use-mount
|
(rn/use-mount
|
||||||
(fn []
|
(fn []
|
||||||
(rf/dispatch [:peer-stats/get-count])))
|
(rf/dispatch [:peer-stats/get-count])))
|
||||||
|
@ -18,4 +20,5 @@
|
||||||
{:style {:flex-direction :row
|
{:style {:flex-direction :row
|
||||||
:margin-vertical 8
|
:margin-vertical 8
|
||||||
:justify-content :space-between}}
|
:justify-content :space-between}}
|
||||||
[rn/text (str (i18n/label :t/peers-count) ": " peers-count)]]]))
|
[rn/text {:style {:color (colors/theme-colors colors/neutral-100 colors/white theme)}}
|
||||||
|
(str (i18n/label :t/peers-count) ": " peers-count)]]]))
|
||||||
|
|
Loading…
Reference in New Issue