From 2e2bd28882cfbc23c6b5cbec862e6b2bf01c5ea6 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Tue, 17 Oct 2023 11:32:33 +0530 Subject: [PATCH] Update heading with description logic --- .../Welcome/Sidebar/LearnMore/index.js | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/OnboardingSPA/steps/GetStarted/Welcome/Sidebar/LearnMore/index.js b/src/OnboardingSPA/steps/GetStarted/Welcome/Sidebar/LearnMore/index.js index cc158724c..a9be0a037 100644 --- a/src/OnboardingSPA/steps/GetStarted/Welcome/Sidebar/LearnMore/index.js +++ b/src/OnboardingSPA/steps/GetStarted/Welcome/Sidebar/LearnMore/index.js @@ -57,6 +57,17 @@ const LearnMore = () => { fullServiceCreativeTeamLink ); + const headingWithDescriptions = brandConfig?.views?.sidebar?.infoPanel + ?.headingWithDescriptions?.shown + ? content.information.headingWithDescriptions.filter( + ( headingWithDescription, idx ) => { + return brandConfig?.views?.sidebar?.infoPanel?.headingWithDescriptions?.shown?.includes( + idx + ); + } + ) + : content.information.headingWithDescriptions; + return (
{ { brandConfig?.views?.sidebar?.illustration?.shown !== false && ( ) } - { - return brandConfig?.views?.sidebar?.infoPanel?.headingWithDescriptions?.shown?.includes( - idx - ); - } - ) } - /> + { brandConfig?.views?.sidebar?.experts?.shown !== false && content.help.experts.link && (