2016-11-04 23:08:50 +01:00
|
|
|
const inherits = require('util').inherits
|
|
|
|
const Component = require('react').Component
|
|
|
|
const h = require('react-hyperscript')
|
2018-03-29 17:00:44 +02:00
|
|
|
const PropTypes = require('prop-types')
|
|
|
|
const connect = require('react-redux').connect
|
|
|
|
|
|
|
|
SeedImportSubview.contextTypes = {
|
|
|
|
t: PropTypes.func,
|
|
|
|
}
|
2016-11-04 23:08:50 +01:00
|
|
|
|
|
|
|
module.exports = connect(mapStateToProps)(SeedImportSubview)
|
|
|
|
|
2018-03-29 17:00:44 +02:00
|
|
|
|
2019-05-08 21:51:33 +02:00
|
|
|
function mapStateToProps () {
|
2016-11-04 23:08:50 +01:00
|
|
|
return {}
|
|
|
|
}
|
|
|
|
|
|
|
|
inherits(SeedImportSubview, Component)
|
|
|
|
function SeedImportSubview () {
|
|
|
|
Component.call(this)
|
|
|
|
}
|
|
|
|
|
|
|
|
SeedImportSubview.prototype.render = function () {
|
|
|
|
return (
|
|
|
|
h('div', {
|
|
|
|
style: {
|
|
|
|
},
|
|
|
|
}, [
|
2018-03-29 17:00:44 +02:00
|
|
|
this.context.t('pasteSeed'),
|
2016-11-04 23:08:50 +01:00
|
|
|
h('textarea'),
|
|
|
|
h('br'),
|
2018-03-29 17:00:44 +02:00
|
|
|
h('button', this.context.t('submit')),
|
2016-11-04 23:08:50 +01:00
|
|
|
])
|
|
|
|
)
|
|
|
|
}
|