Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 0ca8bfd

Browse files
author
Mike England
committed
Fix Navigation linter errors
1 parent 54a031e commit 0ca8bfd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

components/molecules/Navigation/Navigation.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ import isLinkActive from '@/functions/isLinkActive'
22
import cn from 'classnames'
33
import Link from 'next/link'
44
import {useRouter} from 'next/router'
5+
import PropTypes from 'prop-types'
56
import styles from './Navigation.module.css'
67

78
/**
89
* Render the Navigation component.
910
*
1011
* @author WebDevStudios
11-
* @param {object} props Navigation props.
12-
* @param {array} props.menu Array of menu items.
13-
* @param {string} props.className Optional classname for the element.
12+
* @param {object} props Navigation props.
13+
* @param {Array} props.menu Array of menu items.
14+
* @param {string} props.className Optional classname for the element.
1415
* @return {Element} The Navigation component.
1516
*/
1617
export default function Navigation({menu, className}) {
@@ -67,3 +68,8 @@ export default function Navigation({menu, className}) {
6768
</>
6869
)
6970
}
71+
72+
Navigation.propTypes = {
73+
className: PropTypes.string,
74+
menu: PropTypes.arrayOf(PropTypes.object)
75+
}

0 commit comments

Comments
 (0)