Display extension info for "create now" overlay (#1430)

* Display extension info for "create now" overlay

* Revert banner sharing

* Lint
This commit is contained in:
Jaco Greeff 2019-07-21 20:18:06 +02:00 committed by GitHub
parent d1fe789670
commit 7dd6930163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,6 @@ import { ApiProps } from '@polkadot/ui-api/types';
import { SubjectInfo } from '@polkadot/ui-keyring/observable/types';
import React from 'react';
import { Trans } from 'react-i18next';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import { withApi, withMulti, withObservable } from '@polkadot/ui-api';
@ -60,16 +59,15 @@ class Accounts extends React.PureComponent<Props, State> {
className={className}
icon='users'
>
<Trans i18nKey='noAccounts'>
You don&apos;t have any accounts. Some features are currently hidden and will only become available once you have accounts.
{' '}
<p>{t("You don't have any accounts. Some features are currently hidden and will only become available once you have accounts.")}</p>
<p>
<Link
to = {{ pathname: '/accounts', state: { isCreateOpen: true } }}
to='/accounts'
onClick={this.onClose}
>
{t('Create an account now.')}
</Link>
</Trans>
</p>
</BaseOverlay>
);
}