Skip to content

Commit

Permalink
feat(20564): center profile loading icon (#959)
Browse files Browse the repository at this point in the history
  • Loading branch information
Natallia-Harshunova authored Jan 15, 2025
1 parent 18c0da8 commit 5a62fb4
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
import { SettingsNavigation } from '~features/user_profile/components/SettingsForm/SettingsNavigation/SettingsNavigation';
import { SettingsSection } from '~features/user_profile/components/SettingsForm/SettingsSection/SettingsSection';
import stylesV1 from '~features/user_profile/components/SettingsForm/SettingsForm.module.css';
import { FullScreenLoader } from '~components/LoadingSpinner/LoadingSpinner';
import { currentProfileAtom, pageStatusAtom } from '../../atoms/userProfile';
import s from './SettingsForm.module.css';

Expand Down Expand Up @@ -47,12 +48,7 @@ export function SettingsForm() {
getUserProfile();
}, [getUserProfile]);

if (status === 'init')
return (
<div className={s.spinnerContainer}>
<KonturSpinner />
</div>
);
if (status === 'init') return <FullScreenLoader />;

return <SettingsFormGen userProfile={user} updateUserProfile={updateUserProfile} />;
}
Expand Down

0 comments on commit 5a62fb4

Please sign in to comment.