store
1 year ago
AddonRow.jsx
1 year ago
App.jsx
1 year ago
Metabox.jsx
1 year ago
Modal.jsx
1 year ago
Notices.jsx
1 year ago
Select2.jsx
1 year ago
Settings.jsx
1 year ago
Step1.jsx
1 year ago
Step2.jsx
1 year ago
Step3.jsx
1 year ago
StepWrapper.jsx
1 year ago
main.js
1 year ago
App.jsx
30 lines
| 1 | /** |
| 2 | * WordPress Dependencies |
| 3 | */ |
| 4 | import { createPortal } from '@wordpress/element'; |
| 5 | |
| 6 | /** |
| 7 | * Internal Dependencies |
| 8 | */ |
| 9 | import AddonRow from './AddonRow'; |
| 10 | import Metabox from './Metabox'; |
| 11 | import Notices from './Notices'; |
| 12 | import StoreProvider from './store/context'; |
| 13 | |
| 14 | function App() { |
| 15 | return ( |
| 16 | <StoreProvider> |
| 17 | {createPortal( |
| 18 | <AddonRow />, |
| 19 | document.getElementById('advads-oneclick-addon-row') |
| 20 | )} |
| 21 | <div className="mb-4"> |
| 22 | <Notices /> |
| 23 | </div> |
| 24 | <Metabox /> |
| 25 | </StoreProvider> |
| 26 | ); |
| 27 | } |
| 28 | |
| 29 | export default App; |
| 30 |