🐛 fix(theme): sync theme state between global context and local components

- Replace local isDarkMode state with global useTheme hook in TopUp component
- Replace local isDarkMode state with global useTheme hook in PersonalSetting component
- Remove redundant theme detection useEffect hooks that caused state inconsistency
- Update theme condition checks from isDarkMode to theme === 'dark'
- Fix issue where components showed dark gradients in light mode due to theme state mismatch
- Clean up trailing commas in import statements

This ensures all components stay synchronized with the global theme system managed by HeaderBar's theme toggle button.
This commit is contained in:
Apple\Apple
2025-06-09 22:27:39 +08:00
parent ecb0553c6d
commit 5d3a6caae5
4 changed files with 492 additions and 506 deletions

View File

@@ -837,7 +837,18 @@
"支付宝": "Alipay",
"待使用收益": "Proceeds to be used",
"邀请人数": "Number of people invited",
"兑换余额": "Exchange balance",
"兑换码充值": "Redemption code recharge",
"使用兑换码快速充值": "Use redemption code to quickly recharge",
"支付方式": "Payment method",
"邀请奖励": "Invite reward",
"或输入自定义金额": "Or enter a custom amount",
"选择充值额度": "Select recharge amount",
"实付": "Actual payment",
"快速方便的充值方式": "Quick and convenient recharge method",
"邀请好友获得额外奖励": "Invite friends to get additional rewards",
"邀请好友注册,好友充值后您可获得相应奖励": "Invite friends to register, and you can get the corresponding reward after the friend recharges",
"通过划转功能将奖励额度转入到您的账户余额中": "Transfer the reward amount to your account balance through the transfer function",
"邀请的好友越多,获得的奖励越多": "The more friends you invite, the more rewards you will get",
"在线充值": "Online recharge",
"充值数量,最低 ": "Recharge quantity, minimum",
"请选择充值金额": "Please select the recharge amount",
@@ -954,7 +965,7 @@
"任务ID": "Task ID",
"周": "week",
"总计:": "Total:",
"划转": "transfer",
"划转到余额": "Transfer to balance",
"可用额度": "Available credit",
"邀请码:": "Invitation code:",
"最低": "lowest",