Skip to content

Commit 99a12b0

Browse files
committed
code review
1 parent 5c0acb8 commit 99a12b0

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

docs/Buttons.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,14 @@ export const PostList = () => (
246246

247247
![Bulk Delete button](./img/bulk-delete-button.png)
248248

249-
| Prop | Required | Type | Default | Description |
250-
| -------------------- | -------- | --------------------------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------- |
251-
| `confirmContent` | Optional | React node | - | Lets you customize the content of the confirm dialog. Only used in `'pessimistic'` or `'optimistic'` mutation modes |
252-
| `confirmTitle` | Optional | `string` | - | Lets you customize the title of the confirm dialog. Only used in `'pessimistic'` or `'optimistic'` mutation modes |
253-
| `label` | Optional | `string` | 'ra.action.delete' | label or translation message to use |
254-
| `icon` | Optional | `ReactElement` | `<DeleteIcon>` | iconElement, e.g. `<CommentIcon />` |
255-
| `mutationMode` | Optional | `'undoable'|'pessimistic'|'optimistic'` | `'undoable'` | Mutation mode |
256-
| `mutationOptions` | Optional | `object` | null | options for react-query `useMutation` hook |
249+
| Prop | Required | Type | Default | Description |
250+
|-------------------|----------|----------------|--------------------|---------------------------------------------------------------------------------------------------------------------|
251+
| `confirmContent` | Optional | React node | - | Lets you customize the content of the confirm dialog. Only used in `'pessimistic'` or `'optimistic'` mutation modes |
252+
| `confirmTitle` | Optional | `string` | - | Lets you customize the title of the confirm dialog. Only used in `'pessimistic'` or `'optimistic'` mutation modes |
253+
| `label` | Optional | `string` | 'ra.action.delete' | label or translation message to use |
254+
| `icon` | Optional | `ReactElement` | `<DeleteIcon>` | iconElement, e.g. `<CommentIcon />` |
255+
| `mutationMode` | Optional | `string` | `'undoable'` | Mutation mode (`'undoable'`, `'pessimistic'` or `'optimistic'`) |
256+
| `mutationOptions` | Optional | `object` | null | options for react-query `useMutation` hook |
257257

258258
**Tip:** If you choose the `'pessimistic'` or `'optimistic'` mutation mode, a confirm dialog will be displayed to the user before the mutation is executed.
259259

@@ -287,15 +287,15 @@ export const PostList = () => (
287287

288288
![Bulk Update button](./img/bulk-update-button.png)
289289

290-
| Prop | Required | Type | Default | Description |
291-
| -------------------- | -------- | --------------------------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------- |
292-
| `data` | Required | `object` | - | An object with the fields that need to be updated on the selected records |
293-
| `confirmContent` | Optional | React node | - | Lets you customize the content of the confirm dialog. Only used in `'pessimistic'` or `'optimistic'` mutation modes |
294-
| `confirmTitle` | Optional | `string` | - | Lets you customize the title of the confirm dialog. Only used in `'pessimistic'` or `'optimistic'` mutation modes |
295-
| `icon` | Optional | `ReactElement` | `<ActionUpdate>` | An icon element |
296-
| `label` | Optional | `string` | 'ra.action.update' | Label or translation message to use |
297-
| `mutationMode` | Optional | `'undoable'|'pessimistic'|'optimistic'` | `'undoable'` | Mutation mode |
298-
| `mutationOptions` | Optional | `object` | null | Options for react-query `useMutation` hook |
290+
| Prop | Required | Type | Default | Description |
291+
|-------------------|----------|----------------|--------------------|---------------------------------------------------------------------------------------------------------------------|
292+
| `data` | Required | `object` | - | An object with the fields that need to be updated on the selected records |
293+
| `confirmContent` | Optional | React node | - | Lets you customize the content of the confirm dialog. Only used in `'pessimistic'` or `'optimistic'` mutation modes |
294+
| `confirmTitle` | Optional | `string` | - | Lets you customize the title of the confirm dialog. Only used in `'pessimistic'` or `'optimistic'` mutation modes |
295+
| `icon` | Optional | `ReactElement` | `<ActionUpdate>` | An icon element |
296+
| `label` | Optional | `string` | 'ra.action.update' | Label or translation message to use |
297+
| `mutationMode` | Optional | `string` | `'undoable'` | Mutation mode (`'undoable'`, `'pessimistic'` or `'optimistic'`) |
298+
| `mutationOptions` | Optional | `object` | null | Options for react-query `useMutation` hook |
299299

300300
**Tip:** If you choose the `'pessimistic'` or `'optimistic'` mutation mode, a confirm dialog will be displayed to the user before the mutation is executed.
301301

0 commit comments

Comments
 (0)