Hide payouts on no accounts (#2779)

* Hide payouts on no accounts

* Redirect timeout
This commit is contained in:
Jaco Greeff 2020-05-20 13:36:04 +02:00 committed by GitHub
parent e38b27ad90
commit 4c63371318
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ function StakingApp ({ basePath, className }: Props): React.ReactElement<Props>
const hiddenTabs = useMemo(
(): string[] =>
!hasAccounts
? ['actions', 'query']
? ['actions', 'payouts', 'query']
: !hasQueries
? ['returns', 'query']
: [],

View File

@ -16,7 +16,7 @@ async function main () {
<html>
<head>
<title>Redirecting to latest deployed IPFS instance</title>
<meta http-equiv="refresh" content="2; url=${url}" />
<meta http-equiv="refresh" content="0; url=${url}" />
</head>
<body>
<p>Redirecting you to <a href="${url}">${url}</a></p>