Created
March 4, 2018 22:24
-
-
Save goldensunliu/9ff8772de1efff1a06dc154c500af710 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
const NumberControl = ({ number, onClick, completionPercentage }) => ( | |
<div | |
key={number} | |
className="number" | |
onClick={onClick} | |
> | |
<div>{number}</div> | |
<CirclularProgress percent={completionPercentage} /> | |
<style jsx>{NumberControlStyle}</style> | |
</div> | |
); | |
NumberControl.propTypes = { | |
number: PropTypes.number.isRequired, | |
onClick: PropTypes.func, | |
completionPercentage: PropTypes.number.isRequired, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment