You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TypeScript type for a Modal's title is a string while passing a React component, so now that we converted part of our code to TypeScript the type check complains:
<Modal
title={<>this is some <b>text</b></>}
The title ends up being passed from Modal to ModelContent to ModalBoxTitle which does accept a React.ReactNode.
Describe the problem
Modal
How do you reproduce the problem?
The TypeScript type for a Modal's title is a string while passing a React component, so now that we converted part of our code to TypeScript the type check complains:
The title ends up being passed from Modal to ModelContent to ModalBoxTitle which does accept a React.ReactNode.
Expected behavior
No typing error
Is this issue blocking you?
No
What is your product and what release date are you targeting?
Cockpit
Any other information?
The text was updated successfully, but these errors were encountered: