From 295a55bfa2aeeb7cfeb5e909913b45122c26a4f1 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Mon, 16 Oct 2023 21:49:43 +0530 Subject: [PATCH 1/2] Remove irrelevant data for HostGator BR --- .../BasicInfo/Sidebar/LearnMore/index.js | 23 ++++---- .../DesignColors/Sidebar/LearnMore/index.js | 23 ++++---- .../DesignFonts/Sidebar/LearnMore/index.js | 23 ++++---- .../Sidebar/LearnMore/index.js | 23 ++++---- .../Sidebar/LearnMore/index.js | 23 ++++---- .../Menu/Sidebar/LearnMore/index.js | 23 ++++---- .../Preview/Sidebar/LearnMore/index.js | 23 ++++---- .../StepAddress/Sidebar/LearnMore/index.js | 23 ++++---- .../StepProducts/Sidebar/LearnMore/index.js | 23 ++++---- .../StepTax/Sidebar/LearnMore/index.js | 23 ++++---- .../Sidebar/LearnMore/index.js | 23 ++++---- .../PrimarySite/Sidebar/LearnMore/index.js | 19 +++---- .../SecondarySite/Sidebar/LearnMore/index.js | 23 ++++---- .../Welcome/Sidebar/LearnMore/index.js | 53 +++++++++++-------- .../SiteFeatures/Sidebar/LearnMore/index.js | 23 ++++---- .../SitePages/Sidebar/LearnMore/index.js | 23 ++++---- .../steps/WhatNext/Sidebar/LearnMore/index.js | 23 ++++---- 17 files changed, 221 insertions(+), 196 deletions(-) diff --git a/src/OnboardingSPA/steps/BasicInfo/Sidebar/LearnMore/index.js b/src/OnboardingSPA/steps/BasicInfo/Sidebar/LearnMore/index.js index e0e88b71b..57c6e599d 100644 --- a/src/OnboardingSPA/steps/BasicInfo/Sidebar/LearnMore/index.js +++ b/src/OnboardingSPA/steps/BasicInfo/Sidebar/LearnMore/index.js @@ -65,17 +65,18 @@ const LearnMore = () => { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - ( window.location.href = - content.help.fullService.link ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + ( window.location.href = + content.help.fullService.link ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { ) } { + return brandConfig?.views?.sidebar?.infoPanel?.headingWithDescriptions?.shown?.includes( + idx + ); + } + ) } /> - { content.help.experts.link && ( - - window.open( content.help.experts.link, '_blank' ) - } - /> - ) } - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.experts?.shown !== false && + content.help.experts.link && ( + + window.open( + content.help.experts.link, + '_blank' + ) + } + /> + ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } { } /> - { content.help.fullService.link && ( - - window.open( - content.help.fullService.link, - '_blank' - ) - } - /> - ) } + { brandConfig?.views?.sidebar?.fullService?.shown !== false && + content.help.fullService.link && ( + + window.open( + content.help.fullService.link, + '_blank' + ) + } + /> + ) } Date: Tue, 17 Oct 2023 11:32:33 +0530 Subject: [PATCH 2/2] 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 && (