* Bump deps (incl. TS) * Adjust ESM packages for Jest * Yet more Jest hacks * Make horrible jest config slightly prettier * Unbump electron * Fix external package deps
22 lines
704 B
TypeScript
22 lines
704 B
TypeScript
// Copyright 2017-2023 @polkadot/react-components authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { TFunction } from 'i18next';
|
|
|
|
interface Option {
|
|
text: string;
|
|
value: string;
|
|
}
|
|
|
|
export function createDestPrev (t: TFunction): Option[] {
|
|
return [
|
|
{ text: t<string>('Stash account (increase the amount at stake)'), value: 'Staked' },
|
|
{ text: t<string>('Stash account (do not increase the amount at stake)'), value: 'Stash' },
|
|
{ text: t<string>('Controller account'), value: 'Controller' }
|
|
];
|
|
}
|
|
|
|
export function createDestCurr (t: TFunction): Option[] {
|
|
return createDestPrev(t).concat({ text: t<string>('Specified payment account'), value: 'Account' });
|
|
}
|