staking.ts 625 B

123456789101112131415161718192021
  1. // Copyright 2017-2020 @polkadot/apps-routing authors & contributors
  2. // This software may be modified and distributed under the terms
  3. // of the Apache-2.0 license. See the LICENSE file for details.
  4. import { Route } from './types';
  5. import Component from '@polkadot/app-staking';
  6. export default function create (t: <T = string> (key: string, text: string, options: { ns: string }) => T): Route {
  7. return {
  8. Component,
  9. display: {
  10. needsApi: [
  11. ['tx.staking.bond']
  12. ]
  13. },
  14. icon: 'certificate',
  15. name: 'staking',
  16. text: t<string>('nav.staking', 'Validators', { ns: 'apps-routing' })
  17. };
  18. }