PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.15.3
GiveWP – Donation Plugin and Fundraising Platform v4.15.3
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 / src / DonorDashboards / resources / js / block / index.js

index.js in GiveWP – Donation Plugin and Fundraising Platform 4.15.3, at src/DonorDashboards/resources/js/block/index.js

38 lines 894 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 { __ } from '@wordpress/i18n'
5 const {registerBlockType} = wp.blocks;
6
7 /**
8 * Internal dependencies
9 */
10 import blockAttributes from './data/attributes';
11 import GiveIcon from '@givewp/components/GiveIcon';
12 import edit from './edit';
13
14 /**
15 * Register Block
16 */
17
18 export default registerBlockType('give/donor-dashboard', {
19 apiVersion: 3,
20 title: __('Donor Dashboard', 'give'),
21 description: __(
22 'The Donor Dashboard block allows donors to modify and review their donor information from the front-end.',
23 'give'
24 ),
25 category: 'give',
26 icon: <GiveIcon color="grey" />,
27 keywords: [__('donor', 'give'), __('dashboard', 'give')],
28 attributes: blockAttributes,
29 supports: {
30 align: ['wide'],
31 },
32 edit: edit,
33 save: () => {
34 // Server side rendering via shortcode
35 return null;
36 },
37 });
38