Fix treasury page, and disable propose button (#11032)

* Fix treasury page, and disable propose button

* small nit
This commit is contained in:
Tarik Gul 2024-10-23 07:31:54 -07:00 committed by GitHub
parent ca41236d89
commit c2832b806b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 6 deletions

View File

@ -9,9 +9,7 @@ export default function create (t: TFunction): Route {
return {
Component,
display: {
needsApi: [
'tx.treasury.proposeSpend'
]
needsApi: []
},
group: 'governance',
icon: 'gem',

View File

@ -28,9 +28,13 @@ function Overview ({ className, isMember, members }: Props): React.ReactElement<
approvalCount={info?.approvals.length}
proposalCount={info?.proposals.length}
/>
<Button.Group>
<ProposalCreate />
</Button.Group>
{
api.tx.treasury.proposeSpend
? <Button.Group>
<ProposalCreate />
</Button.Group>
: <></>
}
<Proposals
isMember={isMember}
members={members}