From 8c91af5e22c9a28d08e96be98d09766f4843b96d Mon Sep 17 00:00:00 2001 From: kravchenkodhealth <106426895+kravchenkodhealth@users.noreply.github.com> Date: Tue, 10 Jan 2023 14:33:37 +0200 Subject: [PATCH] [@dhealthdapps/frontend] fix(screens): add fallback message for an empty data --- .../resources/i18n/en/Common.json | 3 +- .../src/views/Activities/Activities.vue | 51 ++++++++++--------- 2 files changed, 30 insertions(+), 24 deletions(-) diff --git a/runtime/dapp-frontend-vue/resources/i18n/en/Common.json b/runtime/dapp-frontend-vue/resources/i18n/en/Common.json index 87962de6..1fd31751 100644 --- a/runtime/dapp-frontend-vue/resources/i18n/en/Common.json +++ b/runtime/dapp-frontend-vue/resources/i18n/en/Common.json @@ -20,6 +20,7 @@ "dropdown_refer_earn": "Refer and Earn", "disconnect_wallet": "Disconnect wallet", "activities": "Activities", - "amount_earned": "$ACTIV earned" + "amount_earned": "$ACTIV earned", + "no_activities": "You don't have any activities currently." } } \ No newline at end of file diff --git a/runtime/dapp-frontend-vue/src/views/Activities/Activities.vue b/runtime/dapp-frontend-vue/src/views/Activities/Activities.vue index 944749bd..3b254168 100644 --- a/runtime/dapp-frontend-vue/src/views/Activities/Activities.vue +++ b/runtime/dapp-frontend-vue/src/views/Activities/Activities.vue @@ -58,31 +58,36 @@ {{ activityTitle }} -
-
- +
+
+ + {{ item.sport }} +
+
+
+
+
+
- {{ item.sport }}
-
-
-
-
-
+
+
+