2016-03-16 01:30:39 +01:00
|
|
|
import $ from 'jQuery';
|
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom';
|
2016-03-22 04:27:44 +01:00
|
|
|
import { Provider } from 'react-redux';
|
2016-03-23 22:34:14 +01:00
|
|
|
import CampaignAdmin from './controller';
|
2016-03-16 01:30:39 +01:00
|
|
|
|
2016-03-30 23:45:54 +02:00
|
|
|
// eslint-disable-next-line no-shadow
|
|
|
|
$.entwine('ss', ($) => {
|
|
|
|
$('.cms-content.CampaignAdmin').entwine({
|
|
|
|
onadd() {
|
|
|
|
ReactDOM.render(
|
|
|
|
<Provider store={window.store}>
|
|
|
|
<CampaignAdmin sectionConfigKey="CampaignAdmin" />
|
|
|
|
</Provider>
|
|
|
|
, this[0]);
|
|
|
|
},
|
2016-03-16 01:30:39 +01:00
|
|
|
|
2016-03-30 23:45:54 +02:00
|
|
|
onremove() {
|
|
|
|
ReactDOM.unmountComponentAtNode(this[0]);
|
|
|
|
},
|
|
|
|
});
|
2016-03-16 01:30:39 +01:00
|
|
|
});
|