From 2e81b49fe078d94c1f72e50b5550e4ff657e4b38 Mon Sep 17 00:00:00 2001 From: fzaninotto Date: Wed, 7 Jun 2023 14:38:31 +0200 Subject: [PATCH] [Doc] Fix Confirm prop table overflows --- docs/Confirm.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/Confirm.md b/docs/Confirm.md index 4eea67556f2..f024a0f854d 100644 --- a/docs/Confirm.md +++ b/docs/Confirm.md @@ -62,16 +62,16 @@ const BulkResetViewsButton = () => { |--------------------|----------|----------------------------------|-----------------------|--------------------------------------------------------------------| | `title` | Required | `string` | - | Title of the dialog | | `content` | Required | `ReactNode` | - | Body of the dialog | -| `onClose` | Required | `MouseEventHandler` | - | onClick event handler of the cancel button | -| `onConfirm` | Required | `MouseEventHandler` | - | onClick event handler of the confirm button | +| `onClose` | Required | `Mouse EventHandler` | - | onClick event handler of the cancel button | +| `onConfirm` | Required | `Mouse EventHandler` | - | onClick event handler of the confirm button | | `isOpen` | Optional | `boolean` | `false` | `true` to show the dialog, `false` to hide it | | `loading` | Optional | `boolean` | `false` | Boolean to be applied to the `disabled` prop of the action buttons | -| `cancel` | Optional | `string` | 'ra.action.cancel' | Label of the cancel button | -| `confirm` | Optional | `string` | 'ra.action.confirm' | Label of the confirm button | +| `cancel` | Optional | `string` | 'ra.action. cancel' | Label of the cancel button | +| `confirm` | Optional | `string` | 'ra.action. confirm' | Label of the confirm button | | `confirmColor` | Optional | `string` | 'primary' | Color of the confirm button | -| `ConfirmIcon` | Optional | `ReactElement` | `` | Icon element of the confirm button | -| `CancelIcon` | Optional | `ReactElement` | `` | Icon element of the cancel button | -| `translateOptions` | Optional | `{ id?: string, name?: string }` | {} | Custom id and name to be used in the dialog title | +| `ConfirmIcon` | Optional | `ReactElement` | `` | Icon element of the confirm button | +| `CancelIcon` | Optional | `ReactElement` | `` | Icon element of the cancel button | +| `translate Options` | Optional | `{ id?: string, name?: string }` | {} | Custom id and name to be used in the dialog title | | `sx` | Optional | `SxProps` | '' | Material UI shortcut for defining custom styles with access to the theme | Text props such as `title`, `content`, `cancel`, `confirm` and `translateOptions` are translatable. You can pass translation keys in these props. Note: `content` is only translatable when value is `string`, otherwise it renders the content as a `ReactNode`.