Skip to content

Commit a3b6724

Browse files
committed
fixed proptypes
1 parent 810785e commit a3b6724

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/templates/NavBar/TwoRowsAppBar/TwoRowsAppBar.jsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ import { withStyles } from 'material-ui/styles';
66

77
import styles from './styles';
88

9+
const contentPropType = PropTypes.oneOfType([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]);
10+
911
class TwoRowsAppBar extends PureComponent {
1012
static propTypes = {
1113
classes: PropTypes.shape({}),
12-
topLeftContent: PropTypes.oneOf([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]),
13-
topCenterContent: PropTypes.oneOf([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]),
14-
topRightContent: PropTypes.oneOf([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]),
15-
bottomLeftContent: PropTypes.oneOf([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]),
16-
bottomCenterContent: PropTypes.oneOf([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]),
17-
bottomRightContent: PropTypes.oneOf([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]),
14+
topLeftContent: contentPropType,
15+
topCenterContent: contentPropType,
16+
topRightContent: contentPropType,
17+
bottomLeftContent: contentPropType,
18+
bottomCenterContent: contentPropType,
19+
bottomRightContent: contentPropType,
1820
};
1921

2022
static defaultProps = {

0 commit comments

Comments
 (0)