Adjust staking hidden (only accounts check) (#3688)

This commit is contained in:
Jaco Greeff 2020-09-15 18:30:44 +02:00 committed by GitHub
parent 85a722e511
commit 1b5f04dd48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,8 +27,7 @@ import { STORE_FAVS_BASE } from './constants';
import { useTranslation } from './translate';
import useSortedTargets from './useSortedTargets';
const HIDDEN_ACC = ['actions', 'payouts', 'query'];
const HIDDEN_QUE = ['returns', 'query'];
const HIDDEN_ACC = ['actions', 'payouts'];
const transformElection = {
transform: (status: ElectionStatus) => status.isOpen
@ -108,11 +107,9 @@ function StakingApp ({ basePath, className = '' }: Props): React.ReactElement<Pr
<Tabs
basePath={basePath}
hidden={
!hasAccounts
? HIDDEN_ACC
: !hasQueries
? HIDDEN_QUE
: undefined
hasAccounts
? undefined
: HIDDEN_ACC
}
items={items}
/>