Created
February 13, 2016 22:03
-
-
Save scott-riley/b1d0395877df4a89c6da to your computer and use it in GitHub Desktop.
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, PropTypes } from 'react'; | |
import withStyles from 'isomorphic-style-loader/lib/withStyles'; | |
import s from './ProgressBar.scss'; | |
class ProgressBar extends Component { | |
render() { | |
const {completed} = this.props; | |
const style = { | |
width: `${completed}%`, | |
}; | |
return ( | |
<div className={s.root}> | |
<div className={s.bar} style={style}></div> | |
</div> | |
); | |
} | |
} | |
export default withStyles(ProgressBar, s); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment