File tree Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import PropTypes from 'prop-types' ;
3
+ import { withStyles } from 'material-ui/styles' ;
4
+
5
+ import styles from './styles' ;
6
+
7
+ class Footer extends React . PureComponent {
8
+ static propTypes = {
9
+ classes : PropTypes . shape ( { } ) . isRequired ,
10
+ children : PropTypes . element . isRequired ,
11
+ } ;
12
+
13
+ render ( ) {
14
+ const { classes, children } = this . props ;
15
+ return (
16
+ < div className = { classes . footer } >
17
+ { children }
18
+ </ div >
19
+ ) ;
20
+ }
21
+ }
22
+
23
+ export default withStyles ( styles ) ( Footer ) ;
Original file line number Diff line number Diff line change
1
+ import Footer from './Footer' ;
2
+
3
+ export default Footer ;
Original file line number Diff line number Diff line change
1
+ const styles = theme => ( {
2
+ footer : {
3
+ backgroundColor : theme . palette . background . appBar ,
4
+ color : theme . palette . getContrastText ( theme . palette . background . appBar ) ,
5
+ padding : '20px 10px' ,
6
+ } ,
7
+ message : {
8
+ textAlign : 'center' ,
9
+ marginBottom : '30px' ,
10
+ } ,
11
+ logoImage : {
12
+ maxHeight : '50px' ,
13
+ maxWidth : '300px' ,
14
+ margin : '0' ,
15
+ padding : '0' ,
16
+ } ,
17
+ } ) ;
18
+
19
+ export default styles ;
You can’t perform that action at this time.
0 commit comments