UI2 fixes for Signer popup (#5711)

* Fix new origin shape

* Pass input types through (<input /> tag)

* Update build
This commit is contained in:
Jaco Greeff
2017-05-30 13:41:30 +02:00
committed by GitHub
parent d888190637
commit fd3c8bced7
2 changed files with 8 additions and 4 deletions

View File

@@ -29,7 +29,10 @@ export default class RequestOrigin extends Component {
static propTypes = {
origin: PropTypes.shape({
type: PropTypes.oneOf(['unknown', 'dapp', 'rpc', 'ipc', 'signer']),
details: PropTypes.string.isRequired
details: PropTypes.shape({
dapp: PropTypes.string,
session: PropTypes.string
}).isRequired
}).isRequired
};
@@ -126,7 +129,7 @@ export default class RequestOrigin extends Component {
}
if (origin.type === 'signer') {
return this.renderSigner(origin.details);
return this.renderSigner(origin.details.session || origin.details);
}
}