Skip to content

Commit

Permalink
Main lint
Browse files Browse the repository at this point in the history
  • Loading branch information
khomyakov committed Feb 27, 2024
1 parent 109242f commit 99f063e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Forms/BaseInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const BaseInput = forwardRef(
},
);

BaseInput.propTypes = {
BaseInput.defaultProps = {
as: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]),
size: PropTypes.oneOf(Object.keys(sizes)),
className: PropTypes.string,
Expand Down
4 changes: 2 additions & 2 deletions src/components/Forms/Input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const Input = forwardRef(({ className, type = "text", value, ...rest }, r
);
});

Input.propTypes = {
...BaseInput.propTypes,
Input.defaultProps = {
...BaseInput.defaultProps,
type: PropTypes.string,
};

0 comments on commit 99f063e

Please sign in to comment.