-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
render children inside AppBar #2573
Conversation
please add documentation and example usage |
Related to this: #2534 |
Let me rephrase my remark: please add documentation and example usage in the files of your PR (i.e. modify the react-admin documentation, not only the code). |
I can but I am not the author of this PR 😅 |
I know your rules about having everything documented. btw your docs regarding to adding children to
in this case you will have so I also will fix this one in a new commit in this PR |
@astiag No I don't think it's the case. You are mixing up |
@alanpoulain you are right. didnt notice that. |
77a15c7
to
6ffbd8d
Compare
@fzaninotto please review again |
docs/Theming.md
Outdated
@@ -409,6 +409,22 @@ const MyAppBar = props => <AppBar {...props} userMenu={<MyUserMenu />} />; | |||
const MyLayout = props => <Layout {...props} appBar={MyAppBar} />; | |||
``` | |||
|
|||
`AppBar` can accept children so you are able to add more custom components in it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably go inside the Using a Custom AppBar
section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will change it asap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Any progress? |
I think it would be good to combine this feature, with the possibility of disabling the LoadingIndicator or the UserMenu of the AppBar. |
@fzaninotto @djhi I've moved the description to |
Thanks for the PR, I've finally decided to do a slightly different implementation (replacing the content with children instead of appending the children to the default content) in #2777. So I'll close this PR. |
this PR will render children inside AppBar component