Fix PropType errors

This commit is contained in:
Alex Gleason
2020-06-07 17:18:26 -05:00
parent d295368170
commit 289f90dd4e
3 changed files with 5 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ const FormPropTypes = {
label: PropTypes.oneOfType([
PropTypes.string,
PropTypes.object,
PropTypes.node,
]),
};
@@ -38,7 +39,7 @@ InputContainer.propTypes = {
export const LabelInputContainer = ({ label, children, ...props }) => {
const id = uuidv4();
const childrenWithProps = React.Children.map(children, child => (
React.cloneElement(child, { id: id })
React.cloneElement(child, { id: id, key: id })
));
return (