PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.0
4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 All 256 releases
give / blocks / donation-form-grid / edit / block.js

block.js in GiveWP – Donation Plugin and Fundraising Platform 4.17.0, at blocks/donation-form-grid/edit/block.js

33 lines 697 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * WordPress dependencies
3 */
4 import { Fragment } from '@wordpress/element';
5 import ServerSideRender from '@wordpress/server-side-render';
6 import {withSelect} from '@wordpress/data';
7
8 /**
9 * Internal dependencies
10 */
11 import Inspector from './inspector';
12
13 /**
14 * Render Block UI For Editor
15 */
16
17 const GiveDonationFormGrid = ( props ) => {
18 const { attributes } = props;
19
20 return (
21 <Fragment>
22 <Inspector { ... { ...props } } />
23 <ServerSideRender block="give/donation-form-grid" attributes={ attributes } />
24 </Fragment>
25 );
26 };
27
28 export default withSelect( ( select ) => {
29 return {
30 forms: select( 'core' ).getEntityRecords( 'postType', 'give_forms' ),
31 };
32 } )( GiveDonationFormGrid );
33