Skip to content

Commit e9454d4

Browse files
authored
Merge pull request #663 from newfold-labs/enhance/update-design-studio-loading-state
Change Editor Sidebar Loading State
2 parents 5d8215f + f0708e0 commit e9454d4

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/OnboardingSPA/steps/SiteGen/Editor/Sidebar/Customize/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { lazy, useEffect, useState } from '@wordpress/element';
66
import { store as nfdOnboardingStore } from '../../../../../store';
77
import getContents from './contents';
88
import { getCustomizeSidebarData } from '../../../../../utils/api/siteGen';
9+
import OrbAnimation from '../../../../../components/OrbAnimation';
910

1011
const DesignFontsPanel = lazy( () =>
1112
import(
@@ -45,7 +46,11 @@ const Customize = forwardRef( ( props, ref ) => {
4546
}, [] );
4647

4748
if ( loading ) {
48-
return <div>...</div>;
49+
return (
50+
<div className="nfd-onboarding-sidebar-learn-more__loading">
51+
<OrbAnimation height={ `60px` } />
52+
</div>
53+
);
4954
}
5055

5156
const content = getContents();

src/OnboardingSPA/steps/SiteGen/Editor/stylesheet.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,11 @@
8080
}
8181
}
8282
}
83+
84+
.nfd-onboarding-sidebar-learn-more__loading {
85+
height: 100%;
86+
width: 100%;
87+
display: flex;
88+
align-items: center;
89+
justify-content: center;
90+
}

0 commit comments

Comments
 (0)