From 295a55bfa2aeeb7cfeb5e909913b45122c26a4f1 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Mon, 16 Oct 2023 21:49:43 +0530 Subject: [PATCH] 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' + ) + } + /> + ) }