refactor: 移除暗色模式相关代码,使用固定浅色主题
- DeepAnalysisTab: 移除 useColorModeValue,使用固定颜色值 - NewsEventsTab: 移除 useColorModeValue,简化 hover 颜色 - FinancialPanorama: 移除 useColorMode/useColorModeValue - MarketDataView: 移除 dark 主题配置,简化颜色逻辑 - StockQuoteCard: 移除 useColorModeValue,使用固定颜色 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,6 @@ import {
|
||||
Badge,
|
||||
Progress,
|
||||
Skeleton,
|
||||
useColorModeValue,
|
||||
} from '@chakra-ui/react';
|
||||
|
||||
import type { StockQuoteCardProps } from './types';
|
||||
@@ -53,11 +52,11 @@ const StockQuoteCard: React.FC<StockQuoteCardProps> = ({
|
||||
isLoading = false,
|
||||
}) => {
|
||||
// 颜色配置
|
||||
const cardBg = useColorModeValue('white', 'gray.800');
|
||||
const borderColor = useColorModeValue('gray.200', 'gray.700');
|
||||
const labelColor = useColorModeValue('gray.500', 'gray.400');
|
||||
const valueColor = useColorModeValue('gray.800', 'gray.100');
|
||||
const sectionTitleColor = useColorModeValue('gray.600', 'gray.300');
|
||||
const cardBg = 'white';
|
||||
const borderColor = 'gray.200';
|
||||
const labelColor = 'gray.500';
|
||||
const valueColor = 'gray.800';
|
||||
const sectionTitleColor = 'gray.600';
|
||||
|
||||
// 涨跌颜色
|
||||
const priceColor = data.changePercent >= 0 ? 'green.500' : 'red.500';
|
||||
|
||||
Reference in New Issue
Block a user