Skip to content

Commit

Permalink
Made base menu customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarik Huber authored and Tarik Huber committed Aug 28, 2023
1 parent 503a76e commit 62d9e09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/material-ui-shell/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/material-ui-shell/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "material-ui-shell",
"version": "3.4.13",
"version": "3.4.14",
"description": "material-ui-shell React component",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
8 changes: 5 additions & 3 deletions packages/material-ui-shell/src/containers/Menu/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ import { useConfig } from 'base-shell/lib/providers/Config'
const Menu = (props) => {
const { appConfig } = useConfig()
const { menu } = appConfig || {}
const { MenuHeader, MenuContent } = menu || {}
const { MenuHeader, MenuContent, BaseMenu } = menu || {}

const Menu = BaseMenu || ResponsiveMenu

return (
<ResponsiveMenu>
<Menu>
{MenuHeader && <MenuHeader />}
{MenuContent && <MenuContent />}
</ResponsiveMenu>
</Menu>
)
}

Expand Down

0 comments on commit 62d9e09

Please sign in to comment.