From d8123faa03f48f5fb52bb212e0c219e419365f8d Mon Sep 17 00:00:00 2001 From: alaca Date: Mon, 16 Sep 2024 12:55:27 +0200 Subject: [PATCH] refactor: use SettingsTab component --- .../components/CampaignDetailsPage/tabs.tsx | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/Campaigns/resources/admin/components/CampaignDetailsPage/tabs.tsx b/src/Campaigns/resources/admin/components/CampaignDetailsPage/tabs.tsx index 0266296623..21671a9f18 100644 --- a/src/Campaigns/resources/admin/components/CampaignDetailsPage/tabs.tsx +++ b/src/Campaigns/resources/admin/components/CampaignDetailsPage/tabs.tsx @@ -1,6 +1,7 @@ import {CampaignDetailsTab} from './types'; import {__} from '@wordpress/i18n'; import {getGiveCampaignDetailsWindowData} from './index'; +import SettingsTab from './Tabs/Settings' const {campaign} = getGiveCampaignDetailsWindowData(); @@ -26,21 +27,7 @@ const campaignDetailsTabs: CampaignDetailsTab[] = [ { id: 'settings', title: __('Settings', 'give'), - content: () => ( - <> -

Settings component goes here...

-

- - Edit Campaign Landing Page ⭷ - -

- - ), + content: () => , }, { id: 'forms',