- Added `useUserStatus` hook to manage user status fetching and state. - Integrated user status in Quick Action Dashboard and related pages. - Enhanced error handling and loading states for user status. - Updated profile completion and document upload flows to refresh user status after actions. - Created a centralized API utility for handling requests and responses. - Refactored authentication token management to use session storage.
14 lines
339 B
TypeScript
14 lines
339 B
TypeScript
'use client';
|
|
|
|
import { I18nProvider } from './i18n/useTranslation';
|
|
import AuthInitializer from './components/AuthInitializer';
|
|
|
|
export default function ClientWrapper({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<I18nProvider>
|
|
<AuthInitializer>
|
|
{children}
|
|
</AuthInitializer>
|
|
</I18nProvider>
|
|
);
|
|
} |