Remove unneeded return in CreateNewCampaignModal.
This helps us save indentation and make the code few lines shorter.
This commit is contained in:
parent
e15305b7c3
commit
9f0326b398
|
@ -60,8 +60,7 @@ export const CreateNewCampaignModal = ( props: CreateCampaignModalProps ) => {
|
||||||
) }
|
) }
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{ campaignTypes?.map( ( el ) => {
|
{ campaignTypes?.map( ( el ) => (
|
||||||
return (
|
|
||||||
<Flex
|
<Flex
|
||||||
key={ el.id }
|
key={ el.id }
|
||||||
className="woocommerce-marketing-new-campaign-type"
|
className="woocommerce-marketing-new-campaign-type"
|
||||||
|
@ -97,10 +96,7 @@ export const CreateNewCampaignModal = ( props: CreateCampaignModalProps ) => {
|
||||||
>
|
>
|
||||||
<Flex gap={ 1 }>
|
<Flex gap={ 1 }>
|
||||||
<FlexItem>
|
<FlexItem>
|
||||||
{ __(
|
{ __( 'Create', 'woocommerce' ) }
|
||||||
'Create',
|
|
||||||
'woocommerce'
|
|
||||||
) }
|
|
||||||
</FlexItem>
|
</FlexItem>
|
||||||
{ isExternalURL( el.createUrl ) && (
|
{ isExternalURL( el.createUrl ) && (
|
||||||
<FlexItem>
|
<FlexItem>
|
||||||
|
@ -114,8 +110,7 @@ export const CreateNewCampaignModal = ( props: CreateCampaignModalProps ) => {
|
||||||
</Button>
|
</Button>
|
||||||
</FlexItem>
|
</FlexItem>
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
) ) }
|
||||||
} ) }
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{ !! recommendedChannels?.length && (
|
{ !! recommendedChannels?.length && (
|
||||||
|
|
Loading…
Reference in New Issue