Material UI: consistent JSX style

This commit is contained in:
DC
2016-08-31 12:57:56 -07:00
parent b98f8476f5
commit e0af554caa
6 changed files with 59 additions and 71 deletions

View File

@@ -17,15 +17,14 @@ class Heading extends React.Component {
render () {
const HeadingTag = 'h' + this.props.level
const style = {
color: colors.grey100,
fontSize: 20,
marginBottom: 15,
marginTop: 30
}
return (
<HeadingTag
style={{
color: colors.grey100,
fontSize: 20,
marginBottom: 15,
marginTop: 30
}}
>
<HeadingTag style={style}>
{this.props.children}
</HeadingTag>
)