Ghost/ghost/members-auth-pages/components/FormSubmit.js
Fabien O'Carroll 1bad6dee4e Fixed linting for auth-pages
no-issue
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>
);