♻️ Move module-level loader into Settings tab

This commit is contained in:
Philipp Stracker 2025-01-21 16:07:29 +01:00
parent 8e4462d1fe
commit 882ef34479
No known key found for this signature in database
2 changed files with 7 additions and 7 deletions

View file

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