Skip to content

Commit

Permalink
Remove AdminSectionHero from ScanFooter
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmyta committed Oct 17, 2024
1 parent 0c89eb2 commit 3a40ee7
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions projects/plugins/protect/src/js/routes/scan/scan-footer.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
AdminSectionHero,
Text,
Button,
Title,
Expand Down Expand Up @@ -126,22 +125,18 @@ const FooterInfo = () => {

const ScanFooter = () => {
const { waf } = window.jetpackProtectInitialState || {};
return (
<AdminSectionHero>
{ waf.wafSupported ? (
<SeventyFiveLayout
main={ <ProductPromotion /> }
secondary={ <FooterInfo /> }
preserveSecondaryOnMobile={ true }
/>
) : (
<Container horizontalSpacing={ 0 } horizontalGap={ 0 } fluid={ false }>
<Col>
<FooterInfo />
</Col>
</Container>
) }
</AdminSectionHero>
return waf.wafSupported ? (
<SeventyFiveLayout
main={ <ProductPromotion /> }
secondary={ <FooterInfo /> }
preserveSecondaryOnMobile={ true }
/>
) : (
<Container horizontalSpacing={ 0 } horizontalGap={ 0 } fluid={ false }>
<Col>
<FooterInfo />
</Col>
</Container>
);
};

Expand Down

0 comments on commit 3a40ee7

Please sign in to comment.