1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00

ui - fix account-export margin

This commit is contained in:
kumavis 2016-05-13 16:31:49 -07:00
parent 46f1ab8b48
commit b8ad7f2cb1

View File

@ -31,19 +31,28 @@ ExportAccountView.prototype.render = function() {
and you should only do it if you know what you're doing.` and you should only do it if you know what you're doing.`
var confirmation = `If you're absolutely sure, type "I understand" below and var confirmation = `If you're absolutely sure, type "I understand" below and
submit.` submit.`
return h('div', { key: 'exporting' }, [ return (
h('p.error', warning),
h('p', confirmation), h('div', {
h('input#exportAccount', { key: 'exporting',
onKeyPress: this.onExportKeyPress.bind(this), style: {
}), margin: '0 20px',
h('button', { },
onClick: () => this.onExportKeyPress({ key: 'Enter', preventDefault: () => {} }), }, [
}, 'Submit'), h('p.error', warning),
h('button', { h('p', confirmation),
onClick: () => this.props.dispatch(actions.backToAccountDetail(this.props.address)) h('input#exportAccount', {
}, 'Cancel'), onKeyPress: this.onExportKeyPress.bind(this),
]) }),
h('button', {
onClick: () => this.onExportKeyPress({ key: 'Enter', preventDefault: () => {} }),
}, 'Submit'),
h('button', {
onClick: () => this.props.dispatch(actions.backToAccountDetail(this.props.address))
}, 'Cancel'),
])
)
} }
if (accountExported) { if (accountExported) {