refactor(TradeDatePicker): 组件重构,配置提取与性能优化

- 拆分文件:types.ts(类型)、theme.ts(主题)、utils.ts(工具函数)
- 移除 isDarkMode 相关代码(已确认仅浅色模式)
- 移除 useColorModeValue,直接使用固定颜色值
- 子组件使用 memo 优化,主组件使用 useCallback/useMemo
- 清理冗余:移除未使用的 tipIcon、重复的 focus 样式
- 更新调用方移除 isDarkMode prop

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-12-31 13:23:28 +08:00
parent 70fdad9751
commit 927668bb9c
6 changed files with 180 additions and 129 deletions

View File

@@ -440,7 +440,6 @@ const HotspotOverview = ({ selectedDate, onDateChange, minDate, maxDate }) => {
latestTradeDate={null}
minDate={minDate}
maxDate={maxDate}
isDarkMode={true}
size="sm"
/>
)}