UI2 fixes for Signer popup (#5711)
* Fix new origin shape * Pass input types through (<input /> tag) * Update build
This commit is contained in:
parent
d888190637
commit
fd3c8bced7
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -139,11 +139,12 @@ export default class Input extends Component {
|
||||
step={ step }
|
||||
style={ style }
|
||||
tabIndex={ tabIndex }
|
||||
type={ type }
|
||||
value={ parseI18NString(this.context, value || defaultValue) }
|
||||
>
|
||||
{ this.renderCopyButton() }
|
||||
<input />
|
||||
<input
|
||||
type={ type }
|
||||
/>
|
||||
{ children }
|
||||
</SemanticInput>
|
||||
</LabelWrapper>
|
||||
|
Loading…
Reference in New Issue
Block a user