File tree 5 files changed +8
-8
lines changed
components/graph/wallet_graph
status_im2/contexts/wallet
5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 46
46
(if (= time-frame :empty )
47
47
[fast-image/fast-image
48
48
{:style style/empty-state
49
- :source (resources/get-image
50
- (quo.theme/theme-value :no-funds-light :no-funds-dark theme))}]
49
+ :source (resources/get-themed-image :no-funds theme)}]
51
50
[rn/view
52
51
[linear-gradient/linear-gradient
53
52
{:colors gradient-colors
Original file line number Diff line number Diff line change 10
10
{:light (js/require " ../resources/images/ui2/no-funds-light.png" )
11
11
:dark (js/require " ../resources/images/ui2/no-funds-dark.png" )}})
12
12
13
+ (defn get-themed-image
14
+ [k theme]
15
+ (get-in ui [k theme]))
16
+
13
17
(defn get-image
14
18
[k]
15
19
(get ui k))
Original file line number Diff line number Diff line change 29
29
[empty-tab/view
30
30
{:title (i18n/label :t/no-dapps )
31
31
:description (i18n/label :t/no-collectibles-description )
32
- :image (resources/get-image
33
- (quo.theme/theme-value :no-dapps-light :no-dapps-dark theme))}]
32
+ :image (resources/get-themed-image :no-dapps theme)}]
34
33
[rn/view {:style style/dapps-container}
35
34
[rn/flat-list
36
35
{:data dapps-list
Original file line number Diff line number Diff line change 22
22
[empty-tab/view
23
23
{:title (i18n/label :t/no-activity )
24
24
:description (i18n/label :t/empty-tab-description )
25
- :image (resources/get-image
26
- (quo.theme/theme-value :no-activity-light :no-activity-dark theme))}]
25
+ :image (resources/get-themed-image :no-activity theme)}]
27
26
[rn/flat-list
28
27
{:data activity-list
29
28
:style {:flex 1 }
Original file line number Diff line number Diff line change 14
14
[empty-tab/view
15
15
{:title (i18n/label :t/no-collectibles )
16
16
:description (i18n/label :t/no-collectibles-description )
17
- :image (resources/get-image
18
- (quo.theme/theme-value :no-collectibles-light :no-collectibles-dark theme))}]
17
+ :image (resources/get-themed-image :no-collectibles theme)}]
19
18
[rn/flat-list
20
19
{:data collectible-list
21
20
:style {:flex 1 }
You can’t perform that action at this time.
0 commit comments