Skip to content

Commit

Permalink
fix: #2076
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin.apolinario committed Oct 25, 2023
1 parent 532346b commit 3710069
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 62 deletions.
1 change: 1 addition & 0 deletions cypress/integration/marketing/marketing.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ describe('test for built in marketing pages in app', () => {
}).then((response) => {
expect(response.status).to.not.equal(404);
expect(response.body).not.to.contain('404 Not Found');
expect(response.body).not.to.contain(/’|&| |"/);
cy.get('body').should('exist');
});
});
Expand Down
72 changes: 10 additions & 62 deletions src/blocks/benefits/Benefits.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,69 +135,17 @@ const Benefits = ({
{item?.header || FillerContent.header}
</Typography>
)}
<MuiMarkdown
options={{
overrides: {
h2: {
component: Typography,
props: {
component: 'h2',
variant: 'h4',
sx: {
color: headerColor
? headerColor
: theme.palette.zesty.zestyZambezi,
fontWeight: 'bold',
textAlign: isMedium ? 'center' : 'left',
},
},
},
h3: {
component: Typography,
props: {
component: 'h3',
variant: 'h5',
sx: {
color: headerColor
? headerColor
: theme.palette.zesty.zestyZambezi,
fontWeight: 'bold',
textAlign: isMedium ? 'center' : 'left',
},
},
},
span: {
component: Typography,
props: {
component: 'h2',
variant: 'h3',
sx: {
color: headerColor
? headerColor
: theme.palette.zesty.zestyZambezi,
fontWeight: 'bold',
textAlign: ' center',
},
},
},
p: {
component: Typography,
props: {
mt: 2,
component: 'p',
variant: 'h6',
sx: {
color: theme.palette.zesty.zestyZambezi,
textAlign: isMedium ? 'center' : 'left',
mt: 3,
},
},
},
},
<Typography
variant="h6"
component="p"
sx={{
color: theme.palette.zesty.zestyZambezi,
textAlign: isMedium ? 'center' : 'left',
mt: 2,
mb:6
}}
>
{item?.content || FillerContent.description}
</MuiMarkdown>
dangerouslySetInnerHTML={{ __html: item?.content || FillerContent.description }}
></Typography>
</Grid>
<Grid
sx={{
Expand Down

0 comments on commit 3710069

Please sign in to comment.