Skip to content
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

Fix theming docs UserMenu example #5328

Merged
merged 1 commit into from
Sep 30, 2020
Merged

Fix theming docs UserMenu example #5328

merged 1 commit into from
Sep 30, 2020

Conversation

ceracera
Copy link
Contributor

I was getting this error when trying UserMenu customizaton:

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

I changed how MyAppBar is passed to Layout. From {<MyAppBar />} to {MyAppBar} Seems ok now. It looks like Layout is not expecting component that way.

I was getting this error when trying UserMenu customizaton:
`Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.`

Now it's ok. It seems like Layout is not expecting component that way.
Copy link
Contributor

@djhi djhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@djhi djhi added this to the 3.9.0 milestone Sep 30, 2020
@djhi djhi merged commit 2297dd6 into marmelab:master Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants