From 9f0326b398c6197d1397c1c2b24df7322ac40a7d Mon Sep 17 00:00:00 2001 From: Gan Eng Chin Date: Thu, 9 Mar 2023 22:26:06 +0800 Subject: [PATCH] Remove unneeded return in CreateNewCampaignModal. This helps us save indentation and make the code few lines shorter. --- .../CreateNewCampaignModal.tsx | 101 +++++++++--------- 1 file changed, 48 insertions(+), 53 deletions(-) diff --git a/plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/CreateNewCampaignModal/CreateNewCampaignModal.tsx b/plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/CreateNewCampaignModal/CreateNewCampaignModal.tsx index 62258685cc5..130a4737196 100644 --- a/plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/CreateNewCampaignModal/CreateNewCampaignModal.tsx +++ b/plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/CreateNewCampaignModal/CreateNewCampaignModal.tsx @@ -60,62 +60,57 @@ export const CreateNewCampaignModal = ( props: CreateCampaignModalProps ) => { ) }
- { campaignTypes?.map( ( el ) => { - return ( - - - { - - - - - { el.name } + { campaignTypes?.map( ( el ) => ( + + + { + + + + + { el.name } + + + { el.description } + + + + + - - - ); - } ) } + ) } + + + + + ) ) }
{ !! recommendedChannels?.length && (