From f707d3d524d8d16e2bb780764f029d85fc57ecc0 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 26 Jul 2019 13:22:00 +0300 Subject: prop-types -> jsdoc --- vnext/src/ui/Input.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'vnext/src/ui/Input.js') diff --git a/vnext/src/ui/Input.js b/vnext/src/ui/Input.js index c74d595d..e4fdefa0 100644 --- a/vnext/src/ui/Input.js +++ b/vnext/src/ui/Input.js @@ -1,17 +1,23 @@ import React from 'react'; -import PropTypes from 'prop-types'; import './Input.css'; +/** + * @typedef {Object} InputProps + * @property {string} name + * @property {string} value + * @property {string=} placeholder + * @property {React.CSSProperties=} rest + */ + +/** + * Input component + * @param {InputProps} props + */ function Input({ name, value, ...rest }) { return ( ); } -Input.propTypes = { - name: PropTypes.string.isRequired, - value: PropTypes.string.isRequired -}; - export default React.memo(Input); -- cgit v1.2.3