ghost-portal/packages/apps-routing/src/treasury.ts
Jaco Greeff 7b711316e9
Bump deps (#2753)
* Bump deps

* Fixes
2020-05-15 16:19:06 +02:00

23 lines
650 B
TypeScript

// Copyright 2017-2020 @polkadot/apps-routing authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Route } from './types';
import Treasury, { useCounter } from '@polkadot/app-treasury';
export default function create (t: (key: string, text: string, options: { ns: string }) => string): Route {
return {
Component: Treasury,
display: {
needsApi: [
'tx.treasury.proposeSpend'
]
},
icon: 'gem',
name: 'treasury',
text: t('nav.treasury', 'Treasury', { ns: 'apps-routing' }),
useCounter
};
}