Skip to content

Commit

Permalink
refactor: use SettingsTab component
Browse files Browse the repository at this point in the history
  • Loading branch information
alaca committed Sep 16, 2024
1 parent 5bc4283 commit d8123fa
Showing 1 changed file with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {CampaignDetailsTab} from './types';
import {__} from '@wordpress/i18n';
import {getGiveCampaignDetailsWindowData} from './index';
import SettingsTab from './Tabs/Settings'

const {campaign} = getGiveCampaignDetailsWindowData();

Expand All @@ -26,21 +27,7 @@ const campaignDetailsTabs: CampaignDetailsTab[] = [
{
id: 'settings',
title: __('Settings', 'give'),
content: () => (
<>
<p>Settings component goes here...</p>
<p>
<a
style={{fontSize: '1.5rem'}}
href={campaign.settings.landingPageUrl}
target="_blank"
rel="noopener noreferrer"
>
Edit Campaign Landing Page ⭷
</a>
</p>
</>
),
content: () => <SettingsTab defaultValues={...campaign.properties} />,
},
{
id: 'forms',
Expand Down

0 comments on commit d8123fa

Please sign in to comment.