Skip to content

Commit

Permalink
fix(suite): staking days
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasklim committed Jun 21, 2024
1 parent 8f62f12 commit 9dcd323
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const StakeEthInANutshellModal = ({ onCancel }: StakeEthInANutshellModalP
id={translationId}
values={{
symbol: account?.symbol.toUpperCase(),
days: unstakingPeriod,
count: unstakingPeriod,
}}
/>
</GreyP>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ export const ConfirmStakeEthModal = ({
<Translation
id="TR_STAKE_ENTERING_POOL_MAY_TAKE"
values={{
days:
daysToAddToPoolInitial === undefined
? '30+'
: daysToAddToPoolInitial,
count:
daysToAddToPoolInitial === undefined ? 30 : daysToAddToPoolInitial,
}}
/>
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const UnstakeEthForm = () => {
<Translation
id="TR_UP_TO_DAYS"
values={{
days: unstakingPeriod,
count: unstakingPeriod,
}}
/>
</UpToDaysWrapper>
Expand Down
9 changes: 5 additions & 4 deletions packages/suite/src/support/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8933,7 +8933,7 @@ export default defineMessages({
TR_STAKE_UNSTAKING_TAKES: {
id: 'TR_STAKE_UNSTAKING_TAKES',
defaultMessage:
'Unstaking currently takes {days} days. Once completed, you can trade or send it.',
'Unstaking currently takes {count, plural, one {# day} few {# days} other {# days}}. Once completed, you can trade or send it.',
},
TR_STAKE_ETH_REWARDS_EARN: {
id: 'TR_STAKE_ETH_REWARDS_EARN',
Expand Down Expand Up @@ -8972,7 +8972,8 @@ export default defineMessages({
},
TR_STAKE_ENTERING_POOL_MAY_TAKE: {
id: 'TR_STAKE_ENTERING_POOL_MAY_TAKE',
defaultMessage: 'Entering the staking pool may take up to {days} days',
defaultMessage:
'Entering the staking pool may take up to {count, plural, one {# day} few {# days} other {# days}}',
},
TR_STAKE_ETH_WILL_BE_BLOCKED: {
id: 'TR_STAKE_ETH_WILL_BE_BLOCKED',
Expand Down Expand Up @@ -9009,7 +9010,7 @@ export default defineMessages({
},
TR_STAKE_MAX_REWARD_DAYS: {
id: 'TR_STAKE_MAX_REWARD_DAYS',
defaultMessage: 'Max {days} days',
defaultMessage: 'Max {count, plural, one {# day} other {# days}}',
},
TR_STAKE_NEXT_PAYOUT: {
id: 'TR_STAKE_NEXT_PAYOUT',
Expand Down Expand Up @@ -9058,7 +9059,7 @@ export default defineMessages({
},
TR_UP_TO_DAYS: {
id: 'TR_UP_TO_DAYS',
defaultMessage: 'up to {days} days',
defaultMessage: 'up to {count, plural, one {# day} other {# days}}',
},
TR_STAKE_PAID_FROM_BALANCE: {
id: 'TR_STAKE_PAID_FROM_BALANCE',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const PayoutCard = ({
{payout === undefined ? (
<Translation
id="TR_STAKE_MAX_REWARD_DAYS"
values={{ days: BACKUP_REWARD_PAYOUT_DAYS }}
values={{ count: BACKUP_REWARD_PAYOUT_DAYS }}
/>
) : (
<Translation id="TR_STAKE_DAYS" values={{ count: payout }} />
Expand Down

0 comments on commit 9dcd323

Please sign in to comment.