Skip to content

Commit

Permalink
feat: add back a single spinner during XHR requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersonrabb committed Apr 20, 2020
1 parent feb9db6 commit 3c0d097
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/template-modal/screens/api-keys/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import apiFetch from '@wordpress/api-fetch';
import { Button, ExternalLink, TextControl } from '@wordpress/components';
import { Button, ExternalLink, Spinner, TextControl } from '@wordpress/components';
import { Fragment, useEffect, useState } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import { ENTER } from '@wordpress/keycodes';
Expand Down Expand Up @@ -66,6 +66,7 @@ export default ( { onSetupStatus } ) => {
<Fragment>
<div className={ classes }>
<div className="newspack-newsletters-modal__settings-wrapper">
{ inFlight && <Spinner /> }
<h4>{ __( 'Enter your Mailchimp API key', 'newspack-newsletters' ) }</h4>
<TextControl
label={ __( 'Mailchimp API key', 'newspack-newsletters' ) }
Expand Down

0 comments on commit 3c0d097

Please sign in to comment.