From d5be21649a1fbbed050494123ffd3b89915e5878 Mon Sep 17 00:00:00 2001 From: Alexander Klein Date: Tue, 16 Feb 2021 13:10:34 +0100 Subject: [PATCH] feature(components): prop-type Link --- components/common/Link.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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;