Skip to content

Commit 1da1cbb

Browse files
authored
fix(staking): change wording/name of pool migration banner (#714)
1 parent 9c530ba commit 1da1cbb

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

packages/staking/src/features/i18n/translations/en.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ export const en: Translations = {
110110
'overview.banners.pendingFirstDelegation.message':
111111
'You will see your staking portfolio here once the transaction has been validated',
112112
'overview.banners.pendingFirstDelegation.title': 'Your staking transaction has been submitted',
113-
'overview.banners.pendingPoolMigration.message':
114-
'You will continue to receive rewards from your former stake pool(s) for two epochs',
115-
'overview.banners.pendingPoolMigration.title': 'You are migrating stake pool(s)',
113+
'overview.banners.pendingPortfolioModification.message':
114+
'In case of changing pools you will continue to receive rewards from your former stake pool(s) for two epochs',
115+
'overview.banners.pendingPortfolioModification.title': 'You are modifying your staking portfolio',
116116
'overview.banners.portfolioDrifted.message':
117117
'Make sure to rebalance your staking ratios if you want to match your preferences',
118118
'overview.banners.portfolioDrifted.title': 'Your current delegation portfolio has shifted',

packages/staking/src/features/i18n/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ type KeysStructure = {
192192
title: '';
193193
message: '';
194194
};
195-
pendingPoolMigration: {
195+
pendingPortfolioModification: {
196196
title: '';
197197
message: '';
198198
};

packages/staking/src/features/overview/StakingNotificationBanners/StakingNotificationBanners.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ export const StakingNotificationBanners = ({ popupView, notifications }: Staking
4040
description={t('overview.banners.pendingFirstDelegation.message')}
4141
/>
4242
),
43-
pendingPoolMigration: (
43+
pendingPortfolioModification: (
4444
<Banner
4545
popupView={popupView}
4646
withIcon
4747
customIcon={<InfoIcon className={styles.bannerInfoIcon} />}
48-
message={t('overview.banners.pendingPoolMigration.title')}
49-
description={t('overview.banners.pendingPoolMigration.message')}
48+
message={t('overview.banners.pendingPortfolioModification.title')}
49+
description={t('overview.banners.pendingPortfolioModification.message')}
5050
/>
5151
),
5252
poolRetiredOrSaturated: (

packages/staking/src/features/overview/StakingNotificationBanners/getCurrentStakingNotifications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const getCurrentStakingNotifications = ({
1515
const pendingDelegationTransaction = hasPendingDelegationTransaction(walletActivities);
1616

1717
if (pendingDelegationTransaction) {
18-
return currentPortfolio.length === 0 ? ['pendingFirstDelegation'] : ['pendingPoolMigration'];
18+
return currentPortfolio.length === 0 ? ['pendingFirstDelegation'] : ['pendingPortfolioModification'];
1919
}
2020

2121
return [
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export type StakingNotificationType =
22
| 'pendingFirstDelegation'
3-
| 'pendingPoolMigration'
3+
| 'pendingPortfolioModification'
44
| 'portfolioDrifted'
55
| 'poolRetiredOrSaturated';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export type StakingNotificationType = 'pendingFirstDelegation' | 'pendingPoolMigration' | 'portfolioDrifted';
1+
export type StakingNotificationType = 'pendingFirstDelegation' | 'pendingPortfolioModification' | 'portfolioDrifted';

0 commit comments

Comments
 (0)