diff options
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components/util')
| -rw-r--r-- | opendc-web/opendc-web-ui/src/components/util/NavItemLink.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/util/NavItemLink.js b/opendc-web/opendc-web-ui/src/components/util/NavItemLink.js index c0d109bd..83301361 100644 --- a/opendc-web/opendc-web-ui/src/components/util/NavItemLink.js +++ b/opendc-web/opendc-web-ui/src/components/util/NavItemLink.js @@ -23,11 +23,13 @@ import Link from 'next/link' import PropTypes from 'prop-types' -const NavItemLink = ({ children, href, ...props }) => ( - <Link href={href}> - <a {...props}>{children}</a> - </Link> -) +function NavItemLink({ children, href, ...props }) { + return ( + <Link href={href}> + <a {...props}>{children}</a> + </Link> + ) +} NavItemLink.propTypes = { children: PropTypes.node, |
