File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import Footer from '../Footer';
15
15
class Layout extends React . PureComponent {
16
16
static propTypes = {
17
17
classes : PropTypes . shape ( { } ) ,
18
+ overrideClasses : PropTypes . shape ( { } ) ,
18
19
children : PropTypes . element . isRequired ,
19
20
navbarPostion : PropTypes . string ,
20
21
stickyFooter : PropTypes . bool ,
@@ -49,7 +50,8 @@ class Layout extends React.PureComponent {
49
50
50
51
render ( ) {
51
52
const {
52
- classes,
53
+ classes : defaultClasses ,
54
+ overrideClasses,
53
55
children,
54
56
navbarPostion,
55
57
stickyFooter,
@@ -62,6 +64,8 @@ class Layout extends React.PureComponent {
62
64
footerProps,
63
65
} = this . props ;
64
66
67
+ const classes = { ...defaultClasses , ...overrideClasses } ;
68
+
65
69
const mainClassnames = classNames (
66
70
classes . main ,
67
71
{ [ `${ classes . mainFixedNavbar } ` ] : navbarPostion === 'fixed' } ,
You can’t perform that action at this time.
0 commit comments