DevExpress / devextreme-reactive

Business React components for Bootstrap and Material-UI
https://devexpress.github.io/devextreme-reactive/
Other
2.07k stars 381 forks source link

Invalid type for confirmation Dialogue messages prop #3504

Closed pinchez254 closed 2 years ago

pinchez254 commented 2 years ago

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

Krijovnick commented 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?

pinchez254 commented 2 years ago

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.

Screenshot 2022-02-10 at 14 39 31 (3)

Krijovnick commented 2 years ago

@pinchez254

I can't reproduce the problem. I see the ConfirmationDialog.LocalizationMessages type from our declaration Screenshot from 2022-02-10 16-52-01 Please share a codesandbox example so that we can investigate the problem quickly.

no-response[bot] commented 2 years ago

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.