ghost-portal/packages/apps-routing/src/council.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

28 lines
644 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-council';
import type { Route } from './types';
export default function create (t: TFunction): Route {
return {
Component,
display: {
needsApi: [
[
'query.electionsPhragmen.candidates',
'query.elections.candidates'
]
]
},
group: 'governance',
icon: 'building',
name: 'council',
text: t('nav.council', 'Council', { ns: 'apps-routing' }),
useCounter
};
}