ghost-portal/packages/apps-routing/src/democracy.ts
Ewa Kowalska 87505b1c59
Eslint imports (#4037)
* Add eslint configuration

* Patch eslint plugin for sorting imports

* Apply eslint rules for imports
2020-12-01 14:40:42 +01:00

25 lines
587 B
TypeScript

// Copyright 2017-2020 @polkadot/apps-routing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { TFunction } from 'i18next';
import Component, { useCounter } from '@polkadot/app-democracy';
import type { Route } from './types';
export default function create (t: TFunction): Route {
return {
Component,
display: {
needsApi: [
'tx.democracy.notePreimage'
]
},
group: 'governance',
icon: 'calendar-check',
name: 'democracy',
text: t('nav.democracy', 'Democracy', { ns: 'apps-routing' }),
useCounter
};
}