PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.18.0
GiveWP – Donation Plugin and Fundraising Platform v4.18.0
4.18.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 All 257 releases
give / src / Campaigns / resources / admin / components / CampaignDetailsPage / Tabs / Overview.tsx

Overview.tsx in GiveWP – Donation Plugin and Fundraising Platform 4.18.0, at src/Campaigns/resources/admin/components/CampaignDetailsPage/Tabs/Overview.tsx

33 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import {__} from '@wordpress/i18n';
2 import CampaignStats from '../Components/CampaignStats';
3 import CampaignNotice from '@givewp/campaigns/admin/components/CampaignDetailsPage/Components/Notices/CampaignNotice';
4 import {useCampaignNoticeHook} from '@givewp/campaigns/hooks';
5
6 /**
7 * @since 4.0.0
8 */
9 export default function CampaignDetailsOverviewTab() {
10 const [showTooltip, dismissTooltip] = useCampaignNoticeHook('givewp_campaign_form_notice');
11
12 return (
13 <div>
14 <div>
15 <CampaignStats />
16 </div>
17 {showTooltip && (
18 <CampaignNotice
19 title={__('Campaign Form', 'give')}
20 description={__(
21 'Get a quick view of all the forms associated with your campaign in the forms page. You can edit and add multiple forms to your campaign.',
22 'give'
23 )}
24 linkHref="https://docs.givewp.com/campaign-forms"
25 linkText={__('All you need to know about campaigns', 'give')}
26 handleDismiss={dismissTooltip}
27 type={'campaignForm'}
28 />
29 )}
30 </div>
31 );
32 }
33