pull/76/head
Bosn 7 years ago
parent 79e6a802c6
commit 219bd45ae0

@ -18,13 +18,13 @@ class Importer extends Component {
rmodal: PropTypes.instanceOf(Component), rmodal: PropTypes.instanceOf(Component),
handleAddMemoryProperties: PropTypes.func.isRequired handleAddMemoryProperties: PropTypes.func.isRequired
} }
constructor(props) { constructor (props) {
super(props) super(props)
this.state = { this.state = {
result: JSON.stringify(mockResult(), null, 2) result: JSON.stringify(mockResult(), null, 2)
} }
} }
render() { render () {
const { rmodal } = this.context const { rmodal } = this.context
return ( return (
<section className='Importer'> <section className='Importer'>
@ -51,7 +51,7 @@ class Importer extends Component {
</section> </section>
) )
} }
componentDidUpdate() { componentDidUpdate () {
this.context.rmodal.reposition() this.context.rmodal.reposition()
} }
// DONE 2.1 // DONE 2.1

Loading…
Cancel
Save