From 303fffbc40723127f822c531c2f491c9d841671a Mon Sep 17 00:00:00 2001 From: Alexander Klein Date: Tue, 16 Feb 2021 12:50:27 +0100 Subject: [PATCH] feature(components): prop-type Dot component --- components/common/Dot.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/components/common/Dot.js b/components/common/Dot.js index d5dcf914..81454c48 100644 --- a/components/common/Dot.js +++ b/components/common/Dot.js @@ -1,8 +1,9 @@ import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './Dot.module.css'; -export default function Dot({ color, size, className }) { +function Dot({ color, size, className }) { return (
); } + +Dot.propTypes = { + color: PropTypes.string, + size: PropTypes.oneOf(['small', 'large']), + className: PropTypes.string, +}; + +export default Dot;