From f26428d0095ad85f7e05588d0e91218cbfaf51d7 Mon Sep 17 00:00:00 2001 From: Clinton Date: Wed, 2 Jun 2021 16:03:10 -0700 Subject: [PATCH] wip: fix linting errors. remove unused listView prop for now --- .../icons/newrelic/check-shield.js | 7 +++---- src/components/PackTile.js | 5 +++-- src/pages/observability-packs.js | 21 +++++++------------ 3 files changed, 13 insertions(+), 20 deletions(-) diff --git a/src/@newrelic/gatsby-theme-newrelic/icons/newrelic/check-shield.js b/src/@newrelic/gatsby-theme-newrelic/icons/newrelic/check-shield.js index cc768a2dd..250bd0189 100644 --- a/src/@newrelic/gatsby-theme-newrelic/icons/newrelic/check-shield.js +++ b/src/@newrelic/gatsby-theme-newrelic/icons/newrelic/check-shield.js @@ -1,9 +1,8 @@ import React from 'react'; -import NewRelicSVG from '../../../../components/NewRelicSVG'; import SVG from '@newrelic/gatsby-theme-newrelic/src/components/SVG'; import { css } from '@emotion/react'; -const CheckShieldIcon = (props) => ( +const CheckShieldIcon = () => ( ( > diff --git a/src/components/PackTile.js b/src/components/PackTile.js index 53e8c2718..7b7d86220 100644 --- a/src/components/PackTile.js +++ b/src/components/PackTile.js @@ -30,6 +30,7 @@ const PackTile = ({ {featuredImageUrl && ( Preview of the pack in action {name}{' '} {supportLevel === 'NEWRELIC' && ( - + )} diff --git a/src/pages/observability-packs.js b/src/pages/observability-packs.js index b5ee523da..fdb127b4e 100644 --- a/src/pages/observability-packs.js +++ b/src/pages/observability-packs.js @@ -7,26 +7,22 @@ import PackTile from '../components/PackTile'; import PackList from '../components/PackList'; import { SearchInput, Button, Dropdown } from '@newrelic/gatsby-theme-newrelic'; -const LIST_VIEWS = { - GRID: 'grid', - LIST: 'list', -}; - -const ObservabilityPacksPage = ({ data, listView }) => { +const ObservabilityPacksPage = ({ data, location }) => { const { allObservabilityPacks: { nodes: o11yPacks }, } = data; return ( <> + console.log('clear me')} - placeholder={'Search for an observability pack'} + onClear={() => null} + placeholder="Search for an observability pack" />
{ return ( { ); }; -ObservabilityPacksPage.defaultProps = { - listView: 'grid', -}; - ObservabilityPacksPage.propTypes = { data: PropTypes.object.isRequired, - listView: PropTypes.oneOf(Object.values(LIST_VIEWS)).isRequired, + location: PropTypes.object, }; export const pageQuery = graphql`