Created
April 20, 2018 18:51
-
-
Save leihuagh/c04e87ffb83f7176225ec97ff13876a7 to your computer and use it in GitHub Desktop.
exercises index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react' | |
| import { Grid } from 'material-ui' | |
| import LeftPane from './LeftPane' | |
| import RightPane from './RightPane' | |
| const styles = { | |
| Paper: { | |
| padding: 20, | |
| marginTop: 10, | |
| marginButton: 10, | |
| height: 500, | |
| overflowY: 'auto' | |
| } | |
| } | |
| class Exercises extends Component { | |
| constructor(props) { | |
| super(props) | |
| this.state = { | |
| exercises: this.props.exercises | |
| } | |
| } | |
| render() { | |
| const { exercises } = this.state | |
| return ( | |
| <div> | |
| <Grid container> | |
| <LeftPane styles={styles} exercises={exercises} /> | |
| <RightPane styles={styles} /> | |
| </Grid> | |
| </div> | |
| ) | |
| } | |
| } | |
| export default Exercises |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment