mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
♻️ Move module-level loader into Settings tab
This commit is contained in:
parent
8e4462d1fe
commit
882ef34479
2 changed files with 7 additions and 7 deletions
|
@ -9,7 +9,6 @@ import SettingsScreen from './Screens/Settings';
|
|||
|
||||
const SettingsApp = () => {
|
||||
const onboardingProgress = OnboardingHooks.useSteps();
|
||||
const { isReady: settingsIsReady } = SettingsHooks.useStore();
|
||||
const {
|
||||
isReady: merchantIsReady,
|
||||
merchant: { isSendOnlyCountry },
|
||||
|
@ -32,11 +31,7 @@ const SettingsApp = () => {
|
|||
} );
|
||||
|
||||
const Content = useMemo( () => {
|
||||
if (
|
||||
! onboardingProgress.isReady ||
|
||||
! merchantIsReady ||
|
||||
! settingsIsReady
|
||||
) {
|
||||
if ( ! onboardingProgress.isReady || ! merchantIsReady ) {
|
||||
return <SpinnerOverlay />;
|
||||
}
|
||||
if ( isSendOnlyCountry ) {
|
||||
|
@ -51,7 +46,6 @@ const SettingsApp = () => {
|
|||
merchantIsReady,
|
||||
onboardingProgress.completed,
|
||||
onboardingProgress.isReady,
|
||||
settingsIsReady,
|
||||
] );
|
||||
|
||||
return <div className={ wrapperClass }>{ Content }</div>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue