Add Check and Change Password for an Account (#2861)

* Added new RPC endpoints to JSAPI (#2389)

* Added modal in Account Page to test & modify password (#2389)

* Modify hint with password change // Better tabs (#2556)
This commit is contained in:
Nicolas Gotchac
2016-10-25 17:54:01 +02:00
committed by Gav Wood
parent e71c752210
commit 2d2e9c4d6e
9 changed files with 550 additions and 10 deletions

View File

@@ -22,6 +22,7 @@ const defaultName = 'UNNAMED';
class IdentityName extends Component {
static propTypes = {
className: PropTypes.string,
address: PropTypes.string,
accountsInfo: PropTypes.object,
tokens: PropTypes.object,
@@ -31,7 +32,7 @@ class IdentityName extends Component {
}
render () {
const { address, accountsInfo, tokens, empty, shorten, unknown } = this.props;
const { address, accountsInfo, tokens, empty, shorten, unknown, className } = this.props;
const account = accountsInfo[address] || tokens[address];
const hasAccount = account && (!account.meta || !account.meta.deleted);
@@ -47,7 +48,9 @@ class IdentityName extends Component {
: fallback;
return (
<span>{ name && name.length ? name : fallback }</span>
<span className={ className }>
{ name && name.length ? name : fallback }
</span>
);
}