ghost-portal/packages/apps-routing/src/council.ts
Jaco 42cb6b84d3
Rework collective queries (#5732)
* Rework collective queries

* members derive

* All via derive

* Adjust society useMembers

* Adjust optional consts

* Detect council module locations

* Adjust tech comm with module locations

* Rework loading

* Unused type import
2021-07-02 10:42:13 +02:00

25 lines
597 B
TypeScript

// Copyright 2017-2021 @polkadot/apps-routing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { TFunction } from 'i18next';
import type { Route } from './types';
import Component, { useCounter } from '@polkadot/app-council';
export default function create (t: TFunction): Route {
return {
Component,
display: {
needsApi: [
'query.council.prime'
],
needsApiInstances: true
},
group: 'governance',
icon: 'building',
name: 'council',
text: t('nav.council', 'Council', { ns: 'apps-routing' }),
useCounter
};
}