index.js
30 lines
| 1 | /** |
| 2 | * WordPress dependencies |
| 3 | */ |
| 4 | const { Fragment } = wp.element; |
| 5 | |
| 6 | /** |
| 7 | * Internal dependencies |
| 8 | */ |
| 9 | import Inspector from './inspector'; |
| 10 | |
| 11 | /** |
| 12 | * Vendor dependencies |
| 13 | */ |
| 14 | import ServerSideRender from '../../../components/server-side-render-x'; |
| 15 | |
| 16 | /** |
| 17 | * Render Block UI For Editor |
| 18 | */ |
| 19 | |
| 20 | const ProgressBar = ( { attributes, setAttributes } ) => { |
| 21 | return ( |
| 22 | <Fragment> |
| 23 | <Inspector { ... { attributes, setAttributes } } /> |
| 24 | <ServerSideRender block="give/progress-bar" attributes={ attributes } spinnerLocation={ { right: 0, top: -30, unit: 'px' } } /> |
| 25 | </Fragment> |
| 26 | ); |
| 27 | }; |
| 28 | |
| 29 | export default ProgressBar; |
| 30 |