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 / components / no-form / index.js

index.js in GiveWP – Donation Plugin and Fundraising Platform 4.17.0, at blocks/components/no-form/index.js

39 lines 990 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 import {Button} from '@wordpress/components';
6
7 /**
8 * Internal dependencies
9 */
10 import {getSiteUrl} from '../../utils';
11 import GiveBlankSlate from '../blank-slate';
12
13 /**
14 * Render No forms Found UI
15 *
16 * @since 4.0.0 Replace "new form" with "new campaign form" link
17 */
18
19 const NoForms = () => {
20 return (
21 <GiveBlankSlate
22 title={__('No campaign forms found.', 'give')}
23 description={__('The first step towards accepting online donations is to create a campaign.', 'give')}
24 helpLink
25 >
26 <Button
27 isPrimary
28 isLarge
29 className="give-blank-slate__cta"
30 href={`${getSiteUrl()}/wp-admin/edit.php?post_type=give_forms&page=give-campaigns&new=campaign`}
31 >
32 {__('Create Campaign Form', 'give')}
33 </Button>
34 </GiveBlankSlate>
35 );
36 };
37
38 export default NoForms;
39