Skip to content

Commit

Permalink
Fix text in staking notices
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenbf committed Dec 18, 2024
1 parent 1fda5cb commit 99299eb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function HighStakeWarning({ onContinue, ...props }: HighStakeNoticeProps) {
<FullscreenNotice {...props}>
<Page>
<Page.Top heading={t('title')} />
{t('description', { threshold: STAKE_WARNING_THRESHOLD.toString() })}
<Text.Capture>{t('description', { threshold: STAKE_WARNING_THRESHOLD.toString() })}</Text.Capture>
<Page.Footer>
<Button.Main label={t('buttonContinue')} onClick={onContinue} />
<Button.Main label={t('buttonBack')} onClick={props.onClose} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { formatCcdAmount } from '@popup/popupX/shared/utils/helpers';
import FullscreenNotice, { FullscreenNoticeProps } from '@popup/popupX/shared/FullscreenNotice';
import Page from '@popup/popupX/shared/Page';
import Button from '@popup/popupX/shared/Button';
import Text from '@popup/popupX/shared/Text';

import DelegatorStake from './Stake';
import DelegatorType from './Type';
import { configureDelegatorPayloadFromForm, type DelegatorForm } from './util';
Expand All @@ -22,7 +24,7 @@ function NoChangesNotice(props: FullscreenNoticeProps) {
<FullscreenNotice {...props}>
<Page>
<Page.Top heading={t('title')} />
{t('description')}
<Text.Capture>{t('description')}</Text.Capture>
<Page.Footer>
<Button.Main label={t('buttonBack')} onClick={props.onClose} />
</Page.Footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function HighStakeWarning({ onContinue, ...props }: HighStakeNoticeProps) {
<FullscreenNotice {...props}>
<Page>
<Page.Top heading={t('title')} />
{t('description', { threshold: STAKE_WARNING_THRESHOLD.toString() })}
<Text.Capture>{t('description', { threshold: STAKE_WARNING_THRESHOLD.toString() })}</Text.Capture>
<Page.Footer>
<Button.Main label={t('buttonContinue')} onClick={onContinue} />
<Button.Main label={t('buttonBack')} onClick={props.onClose} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Button from '@popup/popupX/shared/Button';
import { useBlockChainParametersAboveV0 } from '@popup/shared/BlockChainParametersProvider';
import { useSelectedAccountInfo } from '@popup/shared/AccountInfoListenerContext/AccountInfoListenerContext';
import { formatCcdAmount } from '@popup/popupX/shared/utils/helpers';
import Text from '@popup/popupX/shared/Text';

import { ValidatorForm, ValidatorFormExisting, configureValidatorFromForm } from './util';
import ValidatorStake from './Stake';
Expand All @@ -27,7 +28,7 @@ function NoChangesNotice(props: FullscreenNoticeProps) {
<FullscreenNotice {...props}>
<Page>
<Page.Top heading={t('title')} />
{t('description')}
<Text.Capture>{t('description')}</Text.Capture>
<Page.Footer>
<Button.Main label={t('buttonBack')} onClick={props.onClose} />
</Page.Footer>
Expand Down

0 comments on commit 99299eb

Please sign in to comment.