update pay function

This commit is contained in:
2025-11-29 10:05:57 +08:00
parent 34323cc63d
commit 20b3d624f0

View File

@@ -21,8 +21,9 @@ import {
Wrap,
WrapItem,
useColorModeValue,
Link,
} from '@chakra-ui/react';
import { StarIcon, TimeIcon } from '@chakra-ui/icons';
import { StarIcon, TimeIcon, ExternalLinkIcon } from '@chakra-ui/icons';
const SectorDetails = ({ sortedSectors, totalStocks }) => {
// 使用 useRef 来维持展开状态,避免重新渲染时重置
@@ -176,7 +177,21 @@ const SectorDetails = ({ sortedSectors, totalStocks }) => {
<HStack justify="space-between" align="center" wrap="wrap" spacing={3}>
{/* 左侧:股票基本信息 */}
<HStack spacing={2} minW="200px">
<Text fontWeight="bold" fontSize="md">{stock.sname}</Text>
<Link
href={`https://valuefrontier.cn/company?scode=${stock.scode}`}
isExternal
fontWeight="bold"
fontSize="md"
color="blue.600"
_hover={{
color: 'blue.500',
textDecoration: 'underline'
}}
onClick={(e) => e.stopPropagation()}
>
{stock.sname}
<ExternalLinkIcon mx="2px" boxSize={3} />
</Link>
<Badge colorScheme="purple" fontSize="xs">{stock.scode}</Badge>
{stock.continuous_days && (
<Badge