-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add benifit & adapt to the mainnet (#202)
* Add benefit * Skip eslint * Add rebond * Add translation * Fix
- Loading branch information
1 parent
a566103
commit fb623cc
Showing
26 changed files
with
2,338 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// 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 from '@polkadot/apps-benefit/'; | ||
|
||
export default function create (t: TFunction): Route { | ||
return { | ||
Component, | ||
display: { | ||
needsAccounts: true, | ||
needsApi: [ | ||
'tx.benefits.addBenefitFunds' | ||
] | ||
}, | ||
group: 'accounts', | ||
icon: 'calendar', | ||
name: 'benifit', | ||
text: t('nav.benifit', 'Benifit', { ns: 'apps-routing' }) | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1 comment
on commit fb623cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/page-accounts/src/Accounts/index.tsx
packages/apps-routing/src/csmStaking.ts