0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Removed unused onClick handler in StripeSubscribePage

no-issue
This commit is contained in:
Fabien O'Carroll 2019-04-16 19:06:51 +02:00
parent eb0463b119
commit 9a842cab7c

View file

@ -36,10 +36,6 @@ class PaymentForm extends Component {
});
};
onClick = () => {
this.props.stripe.createToken({ name: name });
}
render({frameLocation}) {
let label = this.props.showSpinner ? (
(
@ -54,7 +50,7 @@ class PaymentForm extends Component {
<PasswordInput bindTo="password" />
{ coupon ? <CouponInput disabled={true} bindTo="coupon" /> : '' }
<CheckoutForm />
<FormSubmit label={label} onClick={() => this.onClick()}/>
<FormSubmit label={label} />
</Form>
);
}