Skip to content

Commit

Permalink
feat: use the GlobalFooter from the theme
Browse files Browse the repository at this point in the history
jerelmiller committed Oct 28, 2020
1 parent 661e6e8 commit c8eccc9
Showing 2 changed files with 45 additions and 5 deletions.
41 changes: 41 additions & 0 deletions src/@newrelic/gatsby-theme-newrelic/components/Logo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions src/layouts/MainLayout.js
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import { css } from '@emotion/core';

import { Helmet } from 'react-helmet';
import { GlobalHeader } from '@newrelic/gatsby-theme-newrelic';
import { GlobalHeader, GlobalFooter } from '@newrelic/gatsby-theme-newrelic';
import { graphql, useStaticQuery } from 'gatsby';
import Cookies from 'js-cookie';
import Footer from '../components/Footer';
@@ -147,12 +147,11 @@ const MainLayout = ({ children }) => {
>
{children}
</article>
<Footer
<GlobalFooter
fileRelativePath={fileRelativePath}
css={css`
grid-area: footer;
border-top: 1px solid var(--divider-color);
padding: ${layout.contentPadding} 0;
margin-right: ${layout.contentPadding};
margin-left: -${layout.contentPadding};
`}
/>
</div>

0 comments on commit c8eccc9

Please sign in to comment.