Skip to content

Commit

Permalink
feat: improve billing fields section integration
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe committed Nov 21, 2024
1 parent dda3a11 commit 832b88d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
18 changes: 8 additions & 10 deletions src/wizards/audience/components/billing-fields/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,14 @@ const BillingFields = () => {

return (
<>
<Card noBorder headerActions>
<SectionHeader
title={ __( 'Checkout Billing Fields', 'newspack-plugin' ) }
description={ __(
'Configure the billing fields shown in the modal checkout form.',
'newspack-plugin'
) }
noMargin
/>
</Card>
<SectionHeader
title={ __( 'Checkout Billing Fields', 'newspack-plugin' ) }
description={ __(
'Configure the billing fields shown in the modal checkout form.',
'newspack-plugin'
) }
noMargin
/>
<Grid columns={ 3 } rowGap={ 16 }>
{ Object.keys( availableFields ).map( fieldKey => (
<CheckboxControl
Expand Down
3 changes: 1 addition & 2 deletions src/wizards/audience/views/setup/payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ export default withWizardScreen( function () {
>
<Platform />
{ data?.platform_data?.platform === 'wc' && <PaymentGateways /> }
{ data?.platform_data?.platform === 'wc' && <BillingFields /> }
{ data?.platform_data?.platform === 'nrh' && <NRHSettings /> }
<hr />
<BillingFields />
</WizardsTab>
);
} );

0 comments on commit 832b88d

Please sign in to comment.