Created
August 2, 2016 09:14
-
-
Save balibou/316c0153434058d4702016515e27a8a4 to your computer and use it in GitHub Desktop.
This file contains 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
// ./imports/ui/components/plan.jsx | |
import React from 'react'; | |
import { ListGroupItem } from 'react-bootstrap'; | |
export const Plan = React.createClass({ | |
propTypes: { | |
plan: React.PropTypes.object.isRequired, | |
selectedPlan: React.PropTypes.func, | |
}, | |
handleClick() { | |
this.props.selectedPlan(this.props.plan); | |
}, | |
render() { | |
const { plan } = this.props; | |
return <ListGroupItem key={plan._id} className="clearfix"> | |
<p className="pull-left"> | |
<strong>{plan.amount.usd}</strong> — | |
{plan.name} | |
</p> | |
<a | |
data-service="full-torso-apparition" | |
className="btn btn-success pull-right" | |
onClick={this.handleClick} | |
> | |
Buy Now | |
</a> | |
</ListGroupItem>; | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment