Skip to content

Commit

Permalink
Merge pull request #70 from unicef/feature/uheader-changes
Browse files Browse the repository at this point in the history
UHeader component enhancement
  • Loading branch information
vinuganesan authored Apr 1, 2021
2 parents 14724f5 + a476c58 commit 5e1f8b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unicef/material-ui-example",
"version": "0.1.1",
"version": "0.1.2",
"private": true,
"homepage": "https://unicef.github.io/unicef-material-ui/example",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unicef/material-ui",
"version": "0.7.7",
"version": "0.7.8",
"description": "UNICEF theme and components of material-ui for react",
"main": "index.js",
"files": [
Expand Down
6 changes: 5 additions & 1 deletion src/components/UHeader/UHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default function UHeader(props) {
onLogoClick,
openDrawer,
toggleDrawer,
elevation,
} = props

const handleUrlClick = e => {
Expand All @@ -82,7 +83,7 @@ export default function UHeader(props) {
}

return (
<AppBar position={position}>
<AppBar position={position} elevation={elevation}>
<Toolbar disableGutters={true} className={classes.bgColor}>
<Box display="flex" ml={3} alignItems="center">
{showHamburgerMenu !== false && (
Expand Down Expand Up @@ -191,6 +192,8 @@ UHeader.propTypes = {
openDrawer: PropTypes.bool,
/** Callback to change the openDrawer state */
toggleDrawer: PropTypes.func,
/** AppBar elevation value to handle the box shadow effect */
elevation: PropTypes.number,
}

UHeader.defaultProps = {
Expand All @@ -199,4 +202,5 @@ UHeader.defaultProps = {
hideLogo: false,
logoUrl: '/',
hideLogoBorderLine: true,
elevation: 4,
}

0 comments on commit 5e1f8b4

Please sign in to comment.