fix(checkin): prevent visual flicker when loading check-in component

- Add initialLoaded state to track first data load completion
- Set isCollapsed to null initially, determined after data loads
- Show loading state on button and description text before data arrives
- Remove auto-collapse effect that caused visual flicker
- Add i18n translations for loading states (en/fr/ja/ru/vi/zh)

Fixes issue where component would collapse/expand after data loads,
causing visual flicker when navigating to personal settings page.
This commit is contained in:
RedwindA
2026-01-03 00:43:52 +08:00
parent 3402d09ed0
commit a0328b2f5e
7 changed files with 45 additions and 22 deletions

View File

@@ -2751,6 +2751,8 @@
"每日签到可获得随机额度奖励": "Đăng nhập hàng ngày để nhận phần thưởng hạn mức ngẫu nhiên",
"今日已签到": "Đã đăng nhập hôm nay",
"立即签到": "Đăng nhập ngay",
"加载中...": "Đang tải...",
"正在加载签到状态...": "Đang tải trạng thái đăng nhập...",
"获取签到状态失败": "Không thể lấy trạng thái đăng nhập",
"签到成功!获得": "Đăng nhập thành công! Đã nhận",
"签到失败": "Đăng nhập thất bại",