mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
25e5a31d91
* Members: disabled signup button during signup * Members: disabled non-Stripe signup button during signup * Members: added check to Log in button logged in state
11 lines
441 B
JavaScript
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>
|
|
);
|