Skip to content

Commit

Permalink
fix: added propTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cayla Hamann committed Jun 23, 2020
1 parent 59f1751 commit e0c94b8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/NavigationItems.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Fragment, useState, useContext } from 'react';
import PropTypes from 'prop-types';
import FeatherIcon from './FeatherIcon';
import NewRelicIcon from './NewRelicIcon';
import { Link } from 'gatsby';
Expand Down Expand Up @@ -151,4 +152,19 @@ const NavItem = ({ page, depthLevel, searchTerm, filteredPageNames }) => {
);
};

NavigationItems.propTypes = {
pages: PropTypes.array,
filteredPageNames: PropTypes.array,
searchTerm: PropTypes.string,
depthLevel: PropTypes.number,
};

NavItem.propTypes = {
page: PropTypes.shape({
displayName: PropTypes.string,
url: PropTypes.string,
children: PropTypes.array,
}),
};

export default NavigationItems;

0 comments on commit e0c94b8

Please sign in to comment.