Skip to content

Commit 720e663

Browse files
committed
fix
1 parent 366f994 commit 720e663

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/quo/components/graph/wallet_graph/view.cljs

+1-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646
(if (= time-frame :empty)
4747
[fast-image/fast-image
4848
{: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)}]
5150
[rn/view
5251
[linear-gradient/linear-gradient
5352
{:colors gradient-colors

src/quo/foundations/resources.cljs

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
{:light (js/require "../resources/images/ui2/no-funds-light.png")
1111
:dark (js/require "../resources/images/ui2/no-funds-dark.png")}})
1212

13+
(defn get-themed-image
14+
[k theme]
15+
(get-in ui [k theme]))
16+
1317
(defn get-image
1418
[k]
1519
(get ui k))

src/status_im2/contexts/wallet/account/tabs/dapps/view.cljs

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
[empty-tab/view
3030
{:title (i18n/label :t/no-dapps)
3131
: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)}]
3433
[rn/view {:style style/dapps-container}
3534
[rn/flat-list
3635
{:data dapps-list

src/status_im2/contexts/wallet/common/activity_tab/view.cljs

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
[empty-tab/view
2323
{:title (i18n/label :t/no-activity)
2424
: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)}]
2726
[rn/flat-list
2827
{:data activity-list
2928
:style {:flex 1}

src/status_im2/contexts/wallet/common/collectibles_tab/view.cljs

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
[empty-tab/view
1515
{:title (i18n/label :t/no-collectibles)
1616
: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)}]
1918
[rn/flat-list
2019
{:data collectible-list
2120
:style {:flex 1}

0 commit comments

Comments
 (0)