seas-computing / mark-one

A UI component library for building React Apps (in development)
https://seas-computing.github.io/mark-one/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Fix Modal Body and Modal Footer components #177

Closed natalynyu closed 2 months ago

natalynyu commented 2 months ago

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

Checklist:

Priority:

Related Issues:

Fixes #44