|
42 | 42 | [network-dropdown-temporary]])
|
43 | 43 |
|
44 | 44 | (defn- view-metrics
|
45 |
| - [metrics currency-change percentage-change] |
| 45 | + [{:keys [metrics currency-change percentage-change theme]}] |
46 | 46 | [rn/view
|
47 | 47 | {:style {:flex-direction :row
|
48 | 48 | :align-items :center}}
|
49 | 49 | [text/text
|
50 | 50 | {:weight :medium
|
51 | 51 | :size :paragraph-2
|
52 |
| - :style {:color (style/color-metrics metrics)}} |
| 52 | + :style {:color (style/color-metrics metrics theme)}} |
53 | 53 | percentage-change]
|
54 | 54 | [rn/view
|
55 |
| - {:style (style/dot-separator metrics)}] |
| 55 | + {:style (style/dot-separator metrics theme)}] |
56 | 56 | [text/text
|
57 | 57 | {:weight :medium
|
58 | 58 | :size :paragraph-2
|
59 |
| - :style {:color (style/color-metrics metrics) |
| 59 | + :style {:color (style/color-metrics metrics theme) |
60 | 60 | :margin-right 4}}
|
61 | 61 | currency-change]
|
62 | 62 | [icons/icon
|
63 | 63 | (if (= metrics :positive) :i/positive :i/negative)
|
64 |
| - {:color (style/color-metrics metrics) |
| 64 | + {:color (style/color-metrics metrics theme) |
65 | 65 | :size 16}]])
|
66 | 66 |
|
67 | 67 | (defn- view-info-bottom
|
68 | 68 | [{:keys [state time-frame metrics date begin-date end-date
|
69 | 69 | currency-change percentage-change theme]}]
|
70 |
| - [rn/view {:flex-direction :row} |
| 70 | + [rn/view {:style style/container-info-bottom} |
71 | 71 | (when (= state :loading)
|
72 | 72 | [rn/view
|
73 | 73 | {:style {:flex-direction :row
|
74 | 74 | :align-items :center}}
|
75 | 75 | (loading-bars [{:width 32 :height 10 :margin 8}
|
76 |
| - {:width 32 :height 10 :margin 4} |
| 76 | + {:width 32 :height 10 :margin 2} |
77 | 77 | {:width 62 :height 10 :margin 4}
|
78 | 78 | {:width 10 :height 10 :margin 0}]
|
79 | 79 | theme)])
|
|
107 | 107 | :margin-right 8}}
|
108 | 108 | (time-frame time-frames)]
|
109 | 109 | (when (and (= state :default) (not= metrics :none))
|
110 |
| - [view-metrics metrics currency-change percentage-change])])]) |
| 110 | + [view-metrics |
| 111 | + {:metrics metrics |
| 112 | + :currency-change currency-change |
| 113 | + :percentage-change percentage-change |
| 114 | + :theme theme}])])]) |
111 | 115 |
|
112 | 116 | (defn- view-internal
|
113 | 117 | [props]
|
|
0 commit comments