Skip to content

Commit

Permalink
chore: imported link from src/types
Browse files Browse the repository at this point in the history
  • Loading branch information
Cayla Hamann committed Jun 23, 2020
1 parent e5a6f0c commit 64fce52
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/NavigationItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 64fce52

Please sign in to comment.