From e0579abac68f149258c8a4a325bf1dd2d7b77282 Mon Sep 17 00:00:00 2001 From: Georgi Parlakov Date: Sat, 16 Nov 2024 17:24:26 +0200 Subject: [PATCH] fix: campaign application - fix order of fields (make the goal the last field on the 3-rd step) - remove "Membership" from the list of campaign types (it's a system type) --- .../steps/CampaignApplicationBasic.tsx | 2 +- .../steps/CampaignApplicationDetails.tsx | 18 +++++++++--------- .../client/campaigns/CampaignTypeSelect.tsx | 16 ++++++++++------ 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/components/client/campaign-application/steps/CampaignApplicationBasic.tsx b/src/components/client/campaign-application/steps/CampaignApplicationBasic.tsx index 864dcd8f9..807e746b2 100644 --- a/src/components/client/campaign-application/steps/CampaignApplicationBasic.tsx +++ b/src/components/client/campaign-application/steps/CampaignApplicationBasic.tsx @@ -58,7 +58,7 @@ export default function CampaignApplicationBasic() { /> - + {t('steps.details.title')} - - - + + + {t('campaigns:campaign.type')} - {data?.map((campaignType, index) => ( - - {campaignType.name} - - ))} + {data + ?.filter((campaignType) => !hideSystemTypes || !systemTypes.includes(campaignType?.name)) + ?.map((campaignType, index) => ( + + {campaignType.name} + + ))} {helperText && {helperText}}