File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
modules/ppcp-onboarding/resources/js/task-list Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 33 */
44import { __ } from '@wordpress/i18n' ;
55import apiFetch from '@wordpress/api-fetch' ;
6+ import { Spinner } from '@wordpress/components' ;
67import { useDispatch } from '@wordpress/data' ;
78import { useEffect , useState } from '@wordpress/element' ;
89
@@ -78,8 +79,8 @@ export const ConnectionButton = ( { onError = () => {} } ) => {
7879 result . scriptURL ,
7980 result . scriptData ,
8081 ( ) => {
81- setConnectionUrl ( result . signupLink ) ;
8282 setIsPending ( false ) ;
83+ setConnectionUrl ( result . signupLink ) ;
8384 }
8485 ) ;
8586 } )
@@ -96,6 +97,10 @@ export const ConnectionButton = ( { onError = () => {} } ) => {
9697 } ) ;
9798 } ;
9899
100+ if ( isPending ) {
101+ return < Spinner /> ;
102+ }
103+
99104 return (
100105 < >
101106 < a
You can’t perform that action at this time.
0 commit comments