Ghost/ghost/members-auth-pages/components/FormSubmit.js

11 lines
441 B
JavaScript
Raw Normal View History

export default ({onClick, buttonClass, showSpinner, disabled, label}) => (
<div className="mt7">
2019-05-07 11:29:07 +03:00
<button type="submit" className={ (buttonClass ? buttonClass : 'gm-btn-blue') } onClick={onClick} disabled={ ((disabled || showSpinner) ? 'disabled' : '') }>
<span>
2019-05-07 11:29:07 +03:00
{ (showSpinner ? <span className="gm-spinner"></span> : '')}
{ label }
</span>
</button>
</div>
);