Skip to content

Commit

Permalink
oct-2057: effective tooltip text update + personal allocation box tit…
Browse files Browse the repository at this point in the history
…le fix (admin mode)
  • Loading branch information
jmikolajczyk committed Oct 18, 2024
1 parent 3e82df3 commit 5b7dec1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -39,14 +38,10 @@ const HomeGridCurrentGlmLock: FC<HomeGridCurrentGlmLockProps> = ({ className })
const { data: depositsValue, isFetching: isFetchingDepositValue } = useDepositValue();

const isPreLaunch = getIsPreLaunch(currentEpoch);
const isProjectAdminMode = useIsProjectAdminMode();

return (
<>
<GridTile
className={className}
title={isProjectAdminMode ? t('yourFunds') : t('currentGlmLock')}
>
<GridTile className={className} title={t('currentGlmLock')}>
<div className={styles.root}>
<DoubleValue
cryptoCurrency="golem"
Expand Down Expand Up @@ -77,7 +72,7 @@ const HomeGridCurrentGlmLock: FC<HomeGridCurrentGlmLockProps> = ({ className })
valueCrypto: estimatedEffectiveDeposit,
},
isDisabled: isPreLaunch && !isConnected,
label: isProjectAdminMode ? i18n.t('common.pending') : t('effective'),
label: t('effective'),
tooltipProps: {
dataTest: 'TooltipEffectiveLockedBalance',
position: 'bottom-right',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ const HomeGridPersonalAllocation: FC<HomeGridPersonalAllocationProps> = ({ class

return (
<>
<GridTile className={className} title={i18n.t('common.personalAllocation')}>
<GridTile
className={className}
title={isProjectAdminMode ? t('yourFunds') : i18n.t('common.personalAllocation')}
>
<div className={styles.root}>
<DoubleValue
cryptoCurrency="ethereum"
Expand Down
4 changes: 2 additions & 2 deletions client/src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,9 @@
},
"homeGridCurrentGlmLock": {
"currentGlmLock": "Current GLM lock",
"yourFunds": "Your funds",
"editLockedGLM": "Edit Locked GLM",
"effective": "Effective",
"tooltipText": "Effective lock (EL) is the part of your locked GLM that is currently earning rewards. Equal to your current balance, if that is unchanged during the ongoing epoch. Increase lock & EL increases proportionally to epoch time remaining. Decrease lock & this amount is removed from EL for the epoch.",
"tooltipText": "Effective lock (EL) is the part of your locked GLM that is currently earning rewards. Lock more & EL increases proportionally to epoch time remaining. Unlock GLM & that amount is removed from EL for the epoch. Note that if EL falls below 100, no rewards will be calculated.",
"modalLockGlm": {
"unlockGLM": "Unlock GLM",
"lockGlmBudgetBox": {
Expand All @@ -121,6 +120,7 @@
}
},
"homeGridPersonalAllocation": {
"yourFunds": "Your funds",
"withdrawToWallet": "Withdraw to wallet",
"pendingFundsAvailableAfter": "Pending funds available after",
"modalWithdrawEth": {
Expand Down

0 comments on commit 5b7dec1

Please sign in to comment.