Skip to content

Commit

Permalink
removed header + footer from the all-benefits fallback page
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarah Thompson authored and Sarah Thompson committed May 1, 2019
1 parent 4aa0e60 commit 6509ae7
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,15 @@ class Layout extends Component {
<ErrorBoundary>
<Content>
<SkipToMainContent skipLink={skipLink} t={t} />
<div id="header_css" css={black_bg}>
{t("current-language-code") === "en" ? (
<VacHeaderEn t={t} url={url} />
) : (
<VacHeaderFr t={t} url={url} />
)}
</div>
{!this.props.parentIsFallbackPage ? (
<div id="header_css" css={black_bg}>
{t("current-language-code") === "en" ? (
<VacHeaderEn t={t} url={url} />
) : (
<VacHeaderFr t={t} url={url} />
)}
</div>
) : null}
<main id="main">{this.props.children}</main>
</Content>
{!this.props.parentIsFallbackPage ? (
Expand All @@ -98,13 +100,15 @@ class Layout extends Component {
</Container>
</div>
) : null}
<div id="footer_styles" css={fontStyle}>
{t("current-language-code") === "en" ? (
<VacFooterEn />
) : (
<VacFooterFr />
)}
</div>
{!this.props.parentIsFallbackPage ? (
<div id="footer_styles" css={fontStyle}>
{t("current-language-code") === "en" ? (
<VacFooterEn />
) : (
<VacFooterFr />
)}
</div>
) : null}
</ErrorBoundary>
{noScriptTag}
</div>
Expand Down

0 comments on commit 6509ae7

Please sign in to comment.