diff --git a/components/common/Link.js b/components/common/Link.js index 466e018c..f0fad731 100644 --- a/components/common/Link.js +++ b/components/common/Link.js @@ -1,10 +1,11 @@ import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import NextLink from 'next/link'; import Icon from './Icon'; import styles from './Link.module.css'; -export default function Link({ className, icon, children, size, iconRight, ...props }) { +function Link({ className, icon, children, size, iconRight, ...props }) { return ( ); } + +Link.propTypes = { + className: PropTypes.string, + icon: PropTypes.node, + children: PropTypes.node, + size: PropTypes.oneOf(['large', 'small', 'xsmall']), + iconRight: PropTypes.bool, +}; + +export default Link;