Lint fixes
This commit is contained in:
parent
12a54f097f
commit
3ae3a0df8d
|
@ -11,12 +11,12 @@ import './profile-spinner.scss';
|
|||
export const ProfileSpinner = () => {
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
className={ `woocommerce-profile-wizard__spinner` }
|
||||
data-testid="core-profiler-loading-screen"
|
||||
>
|
||||
<Spinner />
|
||||
</div>
|
||||
<div
|
||||
className={ `woocommerce-profile-wizard__spinner` }
|
||||
data-testid="core-profiler-loading-screen"
|
||||
>
|
||||
<Spinner />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -1206,8 +1206,7 @@ export const CoreProfilerController = ( {
|
|||
: undefined;
|
||||
const navigationProgress = currentNodeMeta?.progress; // This value is defined in each state node's meta tag, we can assume it is 0-100
|
||||
const CurrentComponent =
|
||||
currentNodeMeta?.component ??
|
||||
( () => ( <ProfileSpinner /> ) ); // If no component is defined for the state then its a loading state
|
||||
currentNodeMeta?.component ?? ( () => <ProfileSpinner /> ); // If no component is defined for the state then its a loading state
|
||||
|
||||
useEffect( () => {
|
||||
document.body.classList.remove( 'woocommerce-admin-is-loading' );
|
||||
|
|
Loading…
Reference in New Issue