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' + ) + } + /> + ) } { 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 && ( ) } - + - { 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' + ) + } + /> + ) }