Skip to content

Commit 30d08ed

Browse files
authored
Merge pull request newrelic#683 from newrelic/cayla/fix-linting-errors
Fixes the linting errors
2 parents 9b6ad76 + a08d466 commit 30d08ed

File tree

8 files changed

+10
-2
lines changed

8 files changed

+10
-2
lines changed

src/components/TableOfContents.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import React, { useEffect, useMemo, useRef } from 'react';
1+
import React, { useMemo } from 'react';
22
import PropTypes from 'prop-types';
33
import { css } from '@emotion/core';
44
import { graphql } from 'gatsby';
5-
import { useMedia, usePrevious } from 'react-use';
5+
import { useMedia } from 'react-use';
66
import { Icon, PageTools } from '@newrelic/gatsby-theme-newrelic';
77
import useActiveHash from '../hooks/useActiveHash';
88
import GithubSlugger from 'github-slugger';

src/pages/whats-new.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ const WhatsNew = ({ data, location }) => {
9090

9191
WhatsNew.propTypes = {
9292
data: PropTypes.object.isRequired,
93+
location: PropTypes.object.isRequired,
9394
};
9495

9596
export const pageQuery = graphql`

src/templates/apiLandingPage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export const pageQuery = graphql`
5959

6060
ApiIndexPage.propTypes = {
6161
data: PropTypes.object.isRequired,
62+
location: PropTypes.object.isRequired,
6263
};
6364

6465
export default ApiIndexPage;

src/templates/indexPage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const IndexPage = ({ data, pageContext, location }) => {
3131
IndexPage.propTypes = {
3232
data: PropTypes.object.isRequired,
3333
pageContext: PropTypes.object.isRequired,
34+
location: PropTypes.object.isRequired,
3435
};
3536

3637
export const pageQuery = graphql`

src/templates/landingPage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ const LandingPage = ({ data, location }) => {
5858

5959
LandingPage.propTypes = {
6060
data: PropTypes.object.isRequired,
61+
location: PropTypes.object.isRequired,
6162
};
6263

6364
export const pageQuery = graphql`

src/templates/releaseNote.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ const ReleaseNoteTemplate = ({ data, location }) => {
9191

9292
ReleaseNoteTemplate.propTypes = {
9393
data: PropTypes.object.isRequired,
94+
location: PropTypes.object.isRequired,
9495
};
9596

9697
export const pageQuery = graphql`

src/templates/releaseNoteLandingPage.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ const ReleaseNoteLandingPage = ({ data, pageContext, location }) => {
125125

126126
ReleaseNoteLandingPage.propTypes = {
127127
data: PropTypes.object.isRequired,
128+
location: PropTypes.object.isRequired,
129+
pageContext: PropTypes.object.isRequired,
128130
};
129131

130132
export const pageQuery = graphql`

src/templates/whatsNew.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const WhatsNewTemplate = ({ data, location }) => {
8181

8282
WhatsNewTemplate.propTypes = {
8383
data: PropTypes.object.isRequired,
84+
location: PropTypes.object.isRequired,
8485
};
8586

8687
export const pageQuery = graphql`

0 commit comments

Comments
 (0)