vega-frontend-monorepo/apps/token/src/routes/staking/stake-pending.tsx
Matthew Russell a66be425be
fix(#315): misc styling and ui fixes for the token app
* chore: add callout loaders and input lozenges

* fix: text colors and nav heading

* fix: text color for home links

* chore: fix spacing of wallets

* chore: fix missing translation keys

* chore: add loader to pending associatino tx callout, fix spacing of text within callout

* chore: make sure etherscan links open in a new tab

* fix: redemption page

* fix: spacing of rewards tables list

* fix: link styles on withdraw page

* fix: styles for withdrawal table

* fix: footer links

* fix: staking page links and spacing

* fix: translations

* fix: spacing of callout title, spacing of staking connect step

* fix: vesting page title

* fix: proposals list spacing

* fix: proposal page and vote details

* chore: update translation of metamask wallet connection button

* chore: delete unused files

* chore: dont nest buttons inside  links

* chore: lint

* fix: title test after text change
2022-06-07 11:24:43 -07:00

30 lines
754 B
TypeScript

import { Callout, Loader } from '@vegaprotocol/ui-toolkit';
import { useTranslation } from 'react-i18next';
import { Actions } from './staking-form';
import type { StakeAction } from './staking-form';
interface StakePendingProps {
action: StakeAction;
amount: string;
nodeName: string;
}
export const StakePending = ({
action,
amount,
nodeName,
}: StakePendingProps) => {
const { t } = useTranslation();
const titleArgs = { amount, node: nodeName };
const isAdd = action === Actions.Add;
const title = isAdd
? t('stakeAddPendingTitle', titleArgs)
: t('stakeRemovePendingTitle', titleArgs);
return (
<Callout icon={<Loader size="small" />} title={title}>
<p>{t('timeForConfirmation')}</p>
</Callout>
);
};