@@ -6,15 +6,17 @@ import { withStyles } from 'material-ui/styles';
6
6
7
7
import styles from './styles' ;
8
8
9
+ const contentPropType = PropTypes . oneOfType ( [ PropTypes . element , PropTypes . arrayOf ( PropTypes . element ) ] ) ;
10
+
9
11
class TwoRowsAppBar extends PureComponent {
10
12
static propTypes = {
11
13
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 ,
18
20
} ;
19
21
20
22
static defaultProps = {
0 commit comments