From 325f71c30578e3ff9284b01c7aecc4ebc26be566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrija=20=C4=86erani=C4=87?= Date: Wed, 30 Sep 2020 16:12:07 +0200 Subject: [PATCH] Fix theming docs UserMenu example 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. --- docs/Theming.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Theming.md b/docs/Theming.md index 54d87e05bcf..688ffe49d11 100644 --- a/docs/Theming.md +++ b/docs/Theming.md @@ -435,7 +435,7 @@ const MyUserMenu = props => ( const MyAppBar = props => } />; -const MyLayout = props => } />; +const MyLayout = props => ; ``` You can also customize the default icon by setting the `icon` prop to the `` component.