Skip to content

Commit

Permalink
Update docs/List.md
Browse files Browse the repository at this point in the history
Co-Authored-By: Francois Zaninotto <[email protected]>
  • Loading branch information
WiXSL and fzaninotto authored Oct 15, 2019
1 parent 379e539 commit 8ab7afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/List.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export default ResetViewsButton;

**Tip**: `<Confirm>` text props such as `title` and `content` are translatable. You can pass use translation keys in these props.

**Tip**: You can customize the text and icon of the two `<Confirm>` component buttons using the `cancel` and `confirm` prop which accepts translation keys too and the `ConfirmIcon` and `CancelIcon` prop which accepts a SvgIcon type.
**Tip**: You can customize the text of the two `<Confirm>` component buttons using the `cancel` and `confirm` props which accept translation keys. You can customize the icons by setting the `ConfirmIcon` and `CancelIcon` props, which accept a SvgIcon type.

**Tip**: React-admin doesn't use the `<Confirm>` component internally, because deletes and updates are applied locally immediately, then dispatched to the server after a few seconds, unless the user chooses to undo the modification. That's what we call optimistic rendering. You can do the same for the `ResetViewsButton` by setting `undoable: true` in the last argument of `useUpdateMany()`, as follows:

Expand Down

0 comments on commit 8ab7afb

Please sign in to comment.