Skip to content

Commit

Permalink
Merge pull request #4336 from marmelab/fix-custom-layout-notification
Browse files Browse the repository at this point in the history
Fix custom layout documentation doesn't mention the importance of the <Notification> component
  • Loading branch information
djhi authored Jan 22, 2020
2 parents a3ced8b + d449e5f commit 38f7571
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,8 @@ MyLayout.propTypes = {
export default MyLayout;
```

**Tip**: Don't forget to render a `<Notification>` component in your custom layout, otherwise the undoable updates will never be sent to the server. That's because part of the "undo" logic of react-admin lies in the `<Notification>` component.

## Customizing the AppBar Content

By default, the react-admin `<AppBar>` component displays the page title. You can override this default by passing children to `<AppBar>` - they will replace the default title. And if you still want to include the page title, make sure you include an element with id `react-admin-title` in the top bar (this uses [React Portals](https://reactjs.org/docs/portals.html)).
Expand Down

0 comments on commit 38f7571

Please sign in to comment.