24 lines
449 B
JavaScript
24 lines
449 B
JavaScript
import React, { Component } from react
|
|
|
|
class MyComponent extends Component {
|
|
render = () => {
|
|
return (
|
|
<div id="yield">
|
|
<div className='centerContent'>
|
|
{ render 'form' }
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default MyComponent
|
|
|
|
<script>
|
|
{ Metacode.all.each do |m| }
|
|
{ if m.in_metacode_set(@metacode_set) }
|
|
Metamaps.Admin.selectMetacodes.push("{ m.id }");
|
|
{ end }
|
|
Metamaps.Admin.allMetacodes.push("{ m.id }");
|
|
{ end }
|
|
</script>
|