-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScheduleGrid.js
36 lines (29 loc) · 915 Bytes
/
ScheduleGrid.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import React from "react";
import * as ScheduleConstants from './ScheduleConstants';
import './ScheduleGrid.css';
import Grid from '@material-ui/core/Grid';
class ScheduleGrid extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<Grid container
justify='center'
spacing={ScheduleConstants.QUARTER_SPACING}
className='grid'>
{this.state.quarters.map(function(quarter, index) {
return (<Grid item
key={index}
>
{quarter}
</Grid>)
})}
<Grid item>
<AddQuarterButton clickListener={this.addButtonClicked}></AddQuarterButton>
</Grid>
</Grid>
);
}
}
export default ScheduleGrid;