Skip to content

Commit e214c16

Browse files
authored
Merge pull request #8 from Zetoff/feature/improving-API
improving API
2 parents 6eca403 + 231da2c commit e214c16

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
#WIP
2+
13
material-ui-layout

src/components/NavBar/NavBar.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ class NavBar extends React.PureComponent {
1212
classes: PropTypes.shape({}),
1313
children: PropTypes.element,
1414
navbarPostion: PropTypes.string,
15+
color: PropTypes.string,
1516
};
1617

1718
render() {
18-
const { children, navbarPostion, classes, ...other } = this.props;
19+
const { children, navbarPostion, classes, color, ...other } = this.props;
1920
return (
20-
<AppBar position={navbarPostion} color="default">
21+
<AppBar position={navbarPostion} color={color}>
2122
{React.cloneElement(children, { ...other })}
2223
</AppBar>
2324
);

0 commit comments

Comments
 (0)