46 lines
985 B
JavaScript
46 lines
985 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
|
|
import CssBaseline from '@material-ui/core/CssBaseline'
|
|
import { withStyles } from '@material-ui/core/styles'
|
|
|
|
import TeamsList from './components/TeamsList'
|
|
|
|
const styles = theme => ({
|
|
root: {
|
|
flexGrow: 1
|
|
},
|
|
'@global': {
|
|
body: {
|
|
backgroundColor: theme.palette.common.white
|
|
}
|
|
},
|
|
layout: {
|
|
width: 'auto',
|
|
marginLeft: theme.spacing.unit * 3,
|
|
marginRight: theme.spacing.unit * 3,
|
|
marginBottom: theme.spacing.unit * 6,
|
|
[theme.breakpoints.up(900 + theme.spacing.unit * 3 * 2)]: {
|
|
width: 900,
|
|
marginLeft: 'auto',
|
|
marginRight: 'auto'
|
|
}
|
|
}
|
|
})
|
|
|
|
const Teams = ({ classes, match }) => (
|
|
<React.Fragment>
|
|
<CssBaseline />
|
|
<main className={classes.layout}>
|
|
<TeamsList match={match} />
|
|
</main>
|
|
</React.Fragment>
|
|
)
|
|
|
|
Teams.propTypes = {
|
|
classes: PropTypes.object.isRequired,
|
|
match: PropTypes.object
|
|
}
|
|
|
|
export default withStyles(styles)(Teams)
|