Skip to content

Instantly share code, notes, and snippets.

@leihuagh
Created April 20, 2018 18:46
Show Gist options
  • Select an option

  • Save leihuagh/1c7a0d2f8773fa7d483e5faf2fcb3686 to your computer and use it in GitHub Desktop.

Select an option

Save leihuagh/1c7a0d2f8773fa7d483e5faf2fcb3686 to your computer and use it in GitHub Desktop.
rightpane.js
import React, { Component } from 'react'
import { Grid, Paper, Typography } from 'material-ui'
class RightPane extends Component {
constructor(props) {
super(props)
this.state = {
styles: this.props.styles,
exercises: this.props.exercises
}
}
render() {
const { styles, exercises } = this.state
return (
<Grid item sm>
<Paper style={styles.Paper}>
<Typography variant="display1">Welcome!</Typography>
<Typography variant="subheading" style={{ marginTop: 20 }}>
Please select an exercise from the list on the left
</Typography>
</Paper>
</Grid>
)
}
}
export default RightPane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment