diff options
author | Vitaly Takmazov | 2019-04-08 20:53:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:54 +0300 |
commit | 1a9fb01bcf64a4016fc8167f51871df1a85b692d (patch) | |
tree | c8d202ce2722a62208dc3e6e1a10ca9f0d3ded9a /vnext/src/components/Input.js | |
parent | e46fe57e15cda3869b07c624bbc138c441055a9a (diff) |
Cleanup ESLint warnings
Diffstat (limited to 'vnext/src/components/Input.js')
-rw-r--r-- | vnext/src/components/Input.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/vnext/src/components/Input.js b/vnext/src/components/Input.js index 5c150ec3..c74d595d 100644 --- a/vnext/src/components/Input.js +++ b/vnext/src/components/Input.js @@ -1,9 +1,17 @@ import React from 'react'; +import PropTypes from 'prop-types'; import './Input.css'; function Input({ name, value, ...rest }) { - return(<input class="input" name={name} value={value} {...rest} />) + return ( + <input className="input" name={name} value={value} {...rest} /> + ); } -export default React.memo(Input);
\ No newline at end of file +Input.propTypes = { + name: PropTypes.string.isRequired, + value: PropTypes.string.isRequired +}; + +export default React.memo(Input); |