This updates the ModalBody and ModalFooter to replace their prop interfaces that only contain the children props and replaces it with PropsWithChildren. This is to fix the error that we are seeing in Makerspace when trying to use ModalBody and ModalFooter:
"Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & ExecutionProps & RefAttributes<IStyledComponent<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ModalFooterProps>>>'."
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)
This updates the
ModalBody
andModalFooter
to replace their prop interfaces that only contain thechildren
props and replaces it withPropsWithChildren
. This is to fix the error that we are seeing in Makerspace when trying to useModalBody
andModalFooter
:Describe your changes
Types of changes
Checklist:
eslint
on the codePriority:
Related Issues:
Fixes #44