Currently I have a dialog
<Dialog
open={open}
data-testid="myTestDialog"
disableEscapeKeyDown={true}
disableBackdropClick={true}
>
From the docs https://material-ui.com/api/dialog/ disableBackdropClick is depreciated and onClose should be used instead but how can I modify the above code to make it work using the new onClose, I am not familiar with this function/signature