Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mistakes in propTypes #2911

Merged
merged 10 commits into from Jul 11, 2022
4 changes: 2 additions & 2 deletions packages/react-ui/components/Textarea/TextareaCounter.tsx
Expand Up @@ -65,8 +65,8 @@ export const TextareaCounter = forwardRefAndName<TextareaCounterRef, TextareaCou

TextareaCounter.propTypes = {
length: propTypes.number.isRequired,
value: propTypes.oneOf([propTypes.string, propTypes.number]),
help: propTypes.oneOf([propTypes.node, propTypes.func]),
value: propTypes.oneOfType([propTypes.string, propTypes.number]),
help: propTypes.oneOfType([propTypes.node, propTypes.func]),
onCloseHelp: propTypes.func.isRequired,
textarea: propTypes.node.isRequired,
lossir marked this conversation as resolved.
Show resolved Hide resolved
};
2 changes: 1 addition & 1 deletion packages/react-ui/internal/icons/16px/index.tsx
Expand Up @@ -30,7 +30,7 @@ const SvgIcon = forwardRefAndName<HTMLElement, SvgIconProps>(

SvgIcon.propTypes = {
color: propTypes.string,
size: propTypes.oneOf([propTypes.string, propTypes.number]),
size: propTypes.oneOfType([propTypes.string, propTypes.number]),
style: propTypes.object,
children: propTypes.node,
};
Expand Down