From 64fce5204951a093e37ed3829b13d26a53a0a1d1 Mon Sep 17 00:00:00 2001 From: Cayla Hamann Date: Tue, 23 Jun 2020 16:11:52 -0400 Subject: [PATCH] chore: imported link from src/types --- src/components/NavigationItems.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/NavigationItems.js b/src/components/NavigationItems.js index 2200a5cd5..44b52a2f3 100644 --- a/src/components/NavigationItems.js +++ b/src/components/NavigationItems.js @@ -6,6 +6,7 @@ import { Link } from 'gatsby'; import cx from 'classnames'; import { BreadcrumbContext } from './BreadcrumbContext'; import styles from './NavigationItems.module.scss'; +import { link } from '../types'; const getHighlightedText = (text, highlight) => { const parts = text.split(new RegExp(`(${highlight})`, 'gi')); @@ -161,11 +162,7 @@ NavigationItems.propTypes = { }; NavItem.propTypes = { - page: PropTypes.shape({ - displayName: PropTypes.string, - url: PropTypes.string, - children: PropTypes.array, - }), + page: link, filteredPageNames: PropTypes.array, searchTerm: PropTypes.string, depthLevel: PropTypes.number,