feat: enhance player panel and draw status handling

- Refactored PlayerPanel layout for improved title positioning and responsiveness.
- Added new function to check if betting is blocked based on hall status.
- Updated HallDrawPanel to utilize the new betting status check and display appropriate messages.
- Enhanced i18n support with new notices for review and non-bettable states across multiple languages.
This commit is contained in:
2026-05-25 15:35:50 +08:00
parent 3649bb9300
commit ca3a1db770
9 changed files with 38 additions and 43 deletions

View File

@@ -28,8 +28,8 @@ interface ErrorState {
}
export const useErrorStore = create<ErrorState>((set, get) => ({
// 初始状态
isOffline: typeof window !== "undefined" ? !navigator.onLine : false,
// 首屏与 SSR 一致为 false真实离线状态由 useNetworkStatus 在 mount 后同步
isOffline: false,
isServerError: false,
serverErrorMessage: "服务器暂时不可用,请稍后重试",
currentErrorType: null,