Closed pinchez254 closed 2 years ago
@pinchez254
It is not clear why the ConfirmationDialogProps.messages
property expected react component type. Could you provide us with an example that shows it?
I want to modify the delete confirmation message to read something like "Are you sure you want to delete this event?"
The comment describes the messages prop as an object that contains localised messages but the type expects a React component.
@pinchez254
I can't reproduce the problem. I see the ConfirmationDialog.LocalizationMessages
type from our declaration
Please share a codesandbox example so that we can investigate the problem quickly.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
The documentation species an
An object that contains localized messages
but the expected type is a react component type.(property) ConfirmationDialogProps.messages?: React.ComponentType<ConfirmationDialog.LocalizationMessages> | undefined