Lint fixes

This commit is contained in:
Chris Runnells 2023-06-02 15:08:33 -10:00
parent 12a54f097f
commit 3ae3a0df8d
2 changed files with 7 additions and 8 deletions

View File

@ -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>
</>
);
};

View File

@ -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' );