Skip to content

Commit 19b9b43

Browse files
committed
passing className down as well
1 parent 49b85d7 commit 19b9b43

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/AppBar/AppBar.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// @flow weak
22

3+
// TODO Is this component required anymore?
4+
35
import React from 'react';
46
import PropTypes from 'prop-types';
57
import { withStyles } from 'material-ui/styles';
@@ -14,12 +16,13 @@ class AppBar extends React.PureComponent {
1416
children: PropTypes.element,
1517
position: PropTypes.string,
1618
color: PropTypes.string,
19+
className: PropTypes.string,
1720
};
1821

1922
render() {
20-
const { children, position, classes, color, ...other } = this.props;
23+
const { children, position, classes, color, className, ...other } = this.props;
2124
return (
22-
<MaterialUIAppBar position={position} color={color}>
25+
<MaterialUIAppBar position={position} color={color} className={className}>
2326
{React.cloneElement(children, { ...other })}
2427
</MaterialUIAppBar>
2528
);

0 commit comments

Comments
 (0)