From 5b7dec101d14ef75ac3b61847a106656a229fff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Miko=C5=82ajczyk?= Date: Fri, 18 Oct 2024 13:31:30 +0200 Subject: [PATCH] oct-2057: effective tooltip text update + personal allocation box title fix (admin mode) --- .../HomeGridCurrentGlmLock/HomeGridCurrentGlmLock.tsx | 9 ++------- .../HomeGridPersonalAllocation.tsx | 5 ++++- client/src/locales/en/translation.json | 4 ++-- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/client/src/components/Home/HomeGridCurrentGlmLock/HomeGridCurrentGlmLock.tsx b/client/src/components/Home/HomeGridCurrentGlmLock/HomeGridCurrentGlmLock.tsx index 25f58f1579..b2c1ec5085 100644 --- a/client/src/components/Home/HomeGridCurrentGlmLock/HomeGridCurrentGlmLock.tsx +++ b/client/src/components/Home/HomeGridCurrentGlmLock/HomeGridCurrentGlmLock.tsx @@ -8,7 +8,6 @@ import GridTile from 'components/shared/Grid/GridTile'; import Sections from 'components/ui/BoxRounded/Sections/Sections'; import Button from 'components/ui/Button'; import DoubleValue from 'components/ui/DoubleValue'; -import useIsProjectAdminMode from 'hooks/helpers/useIsProjectAdminMode'; import useMediaQuery from 'hooks/helpers/useMediaQuery'; import useCurrentEpoch from 'hooks/queries/useCurrentEpoch'; import useDepositValue from 'hooks/queries/useDepositValue'; @@ -39,14 +38,10 @@ const HomeGridCurrentGlmLock: FC = ({ className }) const { data: depositsValue, isFetching: isFetchingDepositValue } = useDepositValue(); const isPreLaunch = getIsPreLaunch(currentEpoch); - const isProjectAdminMode = useIsProjectAdminMode(); return ( <> - +
= ({ className }) valueCrypto: estimatedEffectiveDeposit, }, isDisabled: isPreLaunch && !isConnected, - label: isProjectAdminMode ? i18n.t('common.pending') : t('effective'), + label: t('effective'), tooltipProps: { dataTest: 'TooltipEffectiveLockedBalance', position: 'bottom-right', diff --git a/client/src/components/Home/HomeGridPersonalAllocation/HomeGridPersonalAllocation.tsx b/client/src/components/Home/HomeGridPersonalAllocation/HomeGridPersonalAllocation.tsx index e2978f9f27..2410cb0387 100644 --- a/client/src/components/Home/HomeGridPersonalAllocation/HomeGridPersonalAllocation.tsx +++ b/client/src/components/Home/HomeGridPersonalAllocation/HomeGridPersonalAllocation.tsx @@ -46,7 +46,10 @@ const HomeGridPersonalAllocation: FC = ({ class return ( <> - +