This repository was archived by the owner on Feb 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
components/molecules/Navigation Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,16 @@ import isLinkActive from '@/functions/isLinkActive'
2
2
import cn from 'classnames'
3
3
import Link from 'next/link'
4
4
import { useRouter } from 'next/router'
5
+ import PropTypes from 'prop-types'
5
6
import styles from './Navigation.module.css'
6
7
7
8
/**
8
9
* Render the Navigation component.
9
10
*
10
11
* @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.
14
15
* @return {Element } The Navigation component.
15
16
*/
16
17
export default function Navigation ( { menu, className} ) {
@@ -67,3 +68,8 @@ export default function Navigation({menu, className}) {
67
68
</ >
68
69
)
69
70
}
71
+
72
+ Navigation . propTypes = {
73
+ className : PropTypes . string ,
74
+ menu : PropTypes . arrayOf ( PropTypes . object )
75
+ }
You can’t perform that action at this time.
0 commit comments