update pay function
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
|
||||
import React from 'react';
|
||||
import { ChakraProvider } from '@chakra-ui/react';
|
||||
import { HeroUIProvider } from '@heroui/react';
|
||||
import { Provider as ReduxProvider } from 'react-redux';
|
||||
|
||||
// Redux Store
|
||||
@@ -23,11 +22,11 @@ import { NotificationProvider } from '../contexts/NotificationContext';
|
||||
* Provider 层级顺序 (从外到内):
|
||||
* 1. ReduxProvider - 状态管理层
|
||||
* 2. ChakraProvider - UI 框架层(主要)
|
||||
* 3. HeroUIProvider - Hero UI 框架层(AgentChat 专用)
|
||||
* 4. NotificationProvider - 通知系统
|
||||
* 5. AuthProvider - 认证系统
|
||||
* 3. NotificationProvider - 通知系统
|
||||
* 4. AuthProvider - 认证系统
|
||||
*
|
||||
* 注意:
|
||||
* - HeroUI v3 不再需要 HeroUIProvider,样式通过 CSS 导入加载 (src/styles/heroui.css)
|
||||
* - AuthModal 已迁移到 Redux (authModalSlice + useAuthModal Hook)
|
||||
* - ErrorBoundary 在各 Layout 层实现,不在全局层,以实现精细化错误隔离
|
||||
* - MainLayout: PageTransitionWrapper 包含 ErrorBoundary (页面错误不影响导航栏)
|
||||
@@ -49,13 +48,11 @@ export function AppProviders({ children }) {
|
||||
}
|
||||
}}
|
||||
>
|
||||
<HeroUIProvider>
|
||||
<NotificationProvider>
|
||||
<AuthProvider>
|
||||
{children}
|
||||
</AuthProvider>
|
||||
</NotificationProvider>
|
||||
</HeroUIProvider>
|
||||
<NotificationProvider>
|
||||
<AuthProvider>
|
||||
{children}
|
||||
</AuthProvider>
|
||||
</NotificationProvider>
|
||||
</ChakraProvider>
|
||||
</ReduxProvider>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user