Ghost/ghost/members-auth-pages/components/FormSubmit.js
Peter Zimon 25e5a31d91 Members refine buttons (#10692)
* Members: disabled signup button during signup

* Members: disabled non-Stripe signup button during signup

* Members: added check to Log in button logged in state
2019-05-07 17:15:50 +02:00

11 lines
441 B
JavaScript

export default ({onClick, buttonClass, showSpinner, disabled, label}) => (
<div className="mt7">
<button type="submit" className={ (buttonClass ? buttonClass : "gm-btn-blue") } onClick={onClick} disabled={ ((disabled || showSpinner) ? "disabled" : "") }>
<span>
{ (showSpinner ? <span className="gm-spinner"></span> : "")}
{ label }
</span>
</button>
</div>
);