Skip to content

Commit

Permalink
refactor: renamed careerEngagementNetworkMessage field (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeramin authored Jun 24, 2024
1 parent 2405d9c commit 036eca6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/dashboard/sidebar/SupportInformation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ const SupportInformation = ({ className }) => {
const intl = useIntl();
const email = getContactEmail(enterpriseCustomer);

const hasCareerEngagementNetworkMessaging = (
enterpriseCustomer.enableCareerEngagementNetworkOnLearnerPortal && enterpriseCustomer.careerEngagementNetworkMessage
const hasLearnerPortalSidebarMessaging = (
enterpriseCustomer.enableLearnerPortalSidebarMessage && enterpriseCustomer.learnerPortalSidebarContent
);

return (
<>
{hasCareerEngagementNetworkMessaging && (
{hasLearnerPortalSidebarMessaging && (
<SidebarBlock>
{/* eslint-disable-next-line react/no-danger */}
<div dangerouslySetInnerHTML={{ __html: enterpriseCustomer.careerEngagementNetworkMessage }} />
<div dangerouslySetInnerHTML={{ __html: enterpriseCustomer.learnerPortalSidebarContent }} />
</SidebarBlock>
)}
<SidebarBlock
Expand Down

0 comments on commit 036eca6

Please sign in to comment.