From 1e4e5d82d1b783defdea09392b5a2bf2eac27bf4 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Tue, 8 Jan 2019 07:09:06 -0500 Subject: [PATCH] Moving query for siteMetadata to Layout --- src/components/Footer/index.js | 17 +-------- src/components/Header/index.js | 18 +-------- .../Layout/__snapshots__/test.js.snap | 37 ++++++++++++++----- src/components/Layout/index.js | 30 +++++++++++++-- src/components/Layout/test.js | 4 +- 5 files changed, 59 insertions(+), 47 deletions(-) diff --git a/src/components/Footer/index.js b/src/components/Footer/index.js index 62911f0..4ade47e 100644 --- a/src/components/Footer/index.js +++ b/src/components/Footer/index.js @@ -1,20 +1,9 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { StaticQuery, graphql } from 'gatsby'; import { withNamespaces, Trans } from 'react-i18next'; import style from './style.module.css'; -const query = graphql` - query FooterQuery { - site { - siteMetadata { - buildId - } - } - } -`; - export const Footer = ({ t, buildId }) => (