From 8e28554ddbfde83cc5466923b13b05a8b1e31803 Mon Sep 17 00:00:00 2001 From: reyraa Date: Mon, 25 Oct 2021 21:28:45 +0200 Subject: [PATCH] Display Last forged block instead of productivity --- i18n/locales/en/common.json | 2 +- .../wallet/delegateProfile/delegateProfile.css | 4 ++++ .../wallet/delegateProfile/performanceView.js | 15 ++++++++++++--- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/i18n/locales/en/common.json b/i18n/locales/en/common.json index d14a6f0e63..46fa5775f1 100644 --- a/i18n/locales/en/common.json +++ b/i18n/locales/en/common.json @@ -238,6 +238,7 @@ "Label is too long, Max. 20 characters": "Label is too long, Max. 20 characters", "Label is too long.": "Label is too long.", "Last block forged": "Last block forged", + "Last forged block": "Last forged block", "Last {{num}} blocks": "Last {{num}} blocks", "Later": "Later", "Latest votes": "Latest votes", @@ -358,7 +359,6 @@ "Priority": "Priority", "Privacy": "Privacy", "Privacy policy": "Privacy policy", - "Productivity": "Productivity", "Provide Feedback": "Provide Feedback", "Provide a correct amount of {{token}}": "Provide a correct amount of {{token}}", "Provide a correct wallet address or the name of a bookmarked account": "Provide a correct wallet address or the name of a bookmarked account", diff --git a/src/components/screens/wallet/delegateProfile/delegateProfile.css b/src/components/screens/wallet/delegateProfile/delegateProfile.css index 9eaa41cb70..8174e2d5d1 100644 --- a/src/components/screens/wallet/delegateProfile/delegateProfile.css +++ b/src/components/screens/wallet/delegateProfile/delegateProfile.css @@ -12,6 +12,10 @@ & .content { flex-flow: row nowrap; margin-left: 0; + + & a { + text-decoration: none; + } } } diff --git a/src/components/screens/wallet/delegateProfile/performanceView.js b/src/components/screens/wallet/delegateProfile/performanceView.js index ebabd9309f..4b3e58a6a1 100644 --- a/src/components/screens/wallet/delegateProfile/performanceView.js +++ b/src/components/screens/wallet/delegateProfile/performanceView.js @@ -1,6 +1,8 @@ import React from 'react'; +import { NavLink } from 'react-router-dom'; import grid from 'flexboxgrid/dist/flexboxgrid.css'; -import { DEFAULT_STANDBY_THRESHOLD } from '@constants'; + +import { DEFAULT_STANDBY_THRESHOLD, routes } from '@constants'; import { useTheme } from '@utils/theme'; import { capitalize } from '@utils/helpers'; import Box from '@toolbox/box'; @@ -156,10 +158,17 @@ const PerformanceView = ({ -
{'99.45%' || '-'}
+ + {data.lastForgedHeight || '-'} +