Show proper spinners

This commit is contained in:
Dane Everitt 2019-12-22 14:53:27 -08:00
parent 5a31771b4b
commit 446d5be62b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 31 additions and 73 deletions

View file

@ -11,6 +11,7 @@ import Field from '@/components/elements/Field';
import { httpErrorToHuman } from '@/api/http';
import { FlashMessage } from '@/state/flashes';
import ReCAPTCHA from 'react-google-recaptcha';
import Spinner from '@/components/elements/Spinner';
type OwnProps = RouteComponentProps & {
clearFlashes: ActionCreator<void>;
@ -63,7 +64,7 @@ const LoginContainer = ({ isSubmitting, setFieldValue, values, submitForm, handl
className={'btn btn-primary btn-jumbo'}
>
{isSubmitting ?
<span className={'spinner white'}>&nbsp;</span>
<Spinner size={'tiny'} className={'mx-auto'}/>
:
'Login'
}