mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-10-23 11:46:13 +02:00
28 lines
512 B
JavaScript
28 lines
512 B
JavaScript
|
const Component = require('react').Component
|
||
|
const h = require('react-hyperscript')
|
||
|
const inherits = require('util').inherits
|
||
|
|
||
|
module.exports = ReadOnlyInput
|
||
|
|
||
|
inherits(ReadOnlyInput, Component)
|
||
|
function ReadOnlyInput () {
|
||
|
Component.call(this)
|
||
|
}
|
||
|
|
||
|
ReadOnlyInput.prototype.render = function () {
|
||
|
const {
|
||
|
wrapperClass,
|
||
|
inputClass,
|
||
|
value,
|
||
|
} = this.props
|
||
|
|
||
|
return h('div', {className: wrapperClass}, [
|
||
|
h('input', {
|
||
|
className: inputClass,
|
||
|
value,
|
||
|
readOnly: true,
|
||
|
}),
|
||
|
])
|
||
|
}
|
||
|
|