Skip to content

Commit 51e05bf

Browse files
authored
refactor(account-center): remove full-screen loading overlay (#8113)
Remove the full-screen loading layer during API calls to align with the experience package's UX pattern. Button-level loading states are preserved via the LoadingContext. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent e751e8d commit 51e05bf

File tree

2 files changed

+1
-13
lines changed
  • packages/account-center/src

2 files changed

+1
-13
lines changed

packages/account-center/src/Providers/LoadingContextProvider/index.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { useMemo, useState, type ReactNode } from 'react';
22

3-
import Loading from '@ac/components/Loading';
4-
53
import LoadingContext from './LoadingContext';
64

75
type Props = {
@@ -19,12 +17,7 @@ const LoadingContextProvider = ({ children }: Props) => {
1917
[loading]
2018
);
2119

22-
return (
23-
<LoadingContext.Provider value={value}>
24-
{children}
25-
{loading && <Loading />}
26-
</LoadingContext.Provider>
27-
);
20+
return <LoadingContext.Provider value={value}>{children}</LoadingContext.Provider>;
2821
};
2922

3023
export default LoadingContextProvider;

packages/account-center/src/components/Loading/index.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)