PropsWithChildren was included within the definition of the types for the ModalBody and ModalFooter. These changes are in response to getting a type error message when trying to use these components in the Makerspace project related to the children prop.
Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & ExecutionProps & RefAttributes<IStyledComponent<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, { ...; }>>>'.ts(2559)
Describe your changes
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality
to change)
Checklist:
[x] I have run eslint on the code
[ x] I have added JSDoc for all of my code (where applicable)
PropsWithChildren
was included within the definition of the types for theModalBody
andModalFooter
. These changes are in response to getting a type error message when trying to use these components in the Makerspace project related to thechildren
prop.Describe your changes
Types of changes
Checklist:
eslint
on the codePriority:
Related Issues:
Fixes #44