PluginProbe
WP Ultimate Post Grid / 4.0.1
WP Ultimate Post Grid v4.0.1
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
wp-ultimate-post-grid / assets / js / admin-manage-modal.js

admin-manage-modal.js in WP Ultimate Post Grid 4.0.1, at assets/js/admin-manage-modal.js

30 lines 669 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 if (!global._babelPolyfill) { require('babel-polyfill'); }
2 import ReactDOM from 'react-dom';
3 import React from 'react';
4 import { HashRouter } from 'react-router-dom';
5
6 import ManageApp from './admin-manage/App';
7
8 let ManageAppContainer = document.getElementById( 'wpupg-admin-manage' );
9
10 if (ManageAppContainer) {
11 ReactDOM.render(
12 <HashRouter>
13 <ManageApp/>
14 </HashRouter>,
15 ManageAppContainer
16 );
17 }
18
19 import ModalApp from './admin-modal/App';
20
21 let ModalAppContainer = document.getElementById( 'wpupg-admin-modal' );
22
23 if (ModalAppContainer) {
24 ReactDOM.render(
25 <ModalApp
26 ref={(app) => {window.WPUPG_Modal = app}}
27 />,
28 ModalAppContainer
29 );
30 }