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

26 lines
647 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-tech-comm';
export default function create (t: TFunction): Route {
return {
Component,
display: {
needsAccounts: true,
needsApi: [
'query.technicalCommittee.members'
],
needsApiInstances: true
},
group: 'governance',
icon: 'microchip',
name: 'techcomm',
text: t('nav.tech-comm', 'Tech. comm.', { ns: 'apps-routing' }),
useCounter
};
}