block.js
31 lines
| 1 | /** |
| 2 | * WordPress dependencies |
| 3 | */ |
| 4 | const { Fragment } = wp.element; |
| 5 | const ServerSideRender = wp.serverSideRender; |
| 6 | |
| 7 | /** |
| 8 | * Internal dependencies |
| 9 | */ |
| 10 | import Inspector from './inspector'; |
| 11 | |
| 12 | /** |
| 13 | * Render Block UI For Editor |
| 14 | */ |
| 15 | |
| 16 | const GiveDonorWall = ( props ) => { |
| 17 | const { attributes } = props; |
| 18 | |
| 19 | return ( |
| 20 | <Fragment> |
| 21 | <Inspector { ... { ...props } } /> |
| 22 | <ServerSideRender block="give/donor-wall" attributes={ attributes } /> |
| 23 | </Fragment> |
| 24 | ); |
| 25 | }; |
| 26 | |
| 27 | export default GiveDonorWall; |
| 28 | |
| 29 | // @todo show no donor template if donor does not exist. |
| 30 | |
| 31 |