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 / src / Subscriptions / resources / admin / components / SubscriptionDetailsPage / Tabs / definitions.tsx

definitions.tsx in GiveWP – Donation Plugin and Fundraising Platform 4.17.0, at src/Subscriptions/resources/admin/components/SubscriptionDetailsPage/Tabs/definitions.tsx

34 lines 890 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from '@wordpress/i18n';
2 import OverviewTab from './Overview';
3 import DonationsTab from './Donations';
4 import RecordsTab from './Records';
5 import { Tab } from '@givewp/components/AdminDetailsPage/types';
6 import { getSubscriptionOptionsWindowData } from '@givewp/subscriptions/utils';
7
8 const { adminUrl } = getSubscriptionOptionsWindowData();
9 const urlParams = new URLSearchParams(window.location.search);
10 const subscriptionId = urlParams.get('id');
11
12 /**
13 * @since 4.8.0
14 */
15 const subscriptionDetailsTabs: Tab[] = [
16 {
17 id: 'overview',
18 title: __('Overview', 'give'),
19 content: OverviewTab,
20 },
21 {
22 id: 'donations',
23 title: __('Donations', 'give'),
24 content: DonationsTab,
25 },
26 {
27 id: 'records',
28 title: __('Records', 'give'),
29 content: RecordsTab,
30 },
31 ];
32
33 export default subscriptionDetailsTabs;
34