PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 2.4.0
GiveWP – Donation Plugin and Fundraising Platform v2.4.0
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 2.30.0 2.31.0 2.31.1 All 253 releases
give / blocks / donation-form-grid / edit / block.js
block.js
38 lines 710 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * WordPress dependencies
3 */
4 const { __ } = wp.i18n;
5
6 /**
7 * WordPress dependencies
8 */
9 const { Fragment } = wp.element;
10 const { ServerSideRender } = wp.components;
11 const { withSelect } = wp.data;
12
13 /**
14 * Internal dependencies
15 */
16 import Inspector from './inspector';
17
18 /**
19 * Render Block UI For Editor
20 */
21
22 const GiveDonationFormGrid = ( props ) => {
23 const {attributes} = props;
24
25 return (
26 <Fragment>
27 <Inspector { ... { ...props } } />
28 <ServerSideRender block="give/donation-form-grid" attributes={ attributes } />
29 </Fragment>
30 );
31 };
32
33 export default withSelect( ( select ) => {
34 return {
35 forms: select( 'core' ).getEntityRecords( 'postType', 'give_forms' ),
36 };
37 } )( GiveDonationFormGrid );
38