Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.