update pay function
This commit is contained in:
@@ -21,8 +21,9 @@ import {
|
|||||||
Wrap,
|
Wrap,
|
||||||
WrapItem,
|
WrapItem,
|
||||||
useColorModeValue,
|
useColorModeValue,
|
||||||
|
Link,
|
||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
import { StarIcon, TimeIcon } from '@chakra-ui/icons';
|
import { StarIcon, TimeIcon, ExternalLinkIcon } from '@chakra-ui/icons';
|
||||||
|
|
||||||
const SectorDetails = ({ sortedSectors, totalStocks }) => {
|
const SectorDetails = ({ sortedSectors, totalStocks }) => {
|
||||||
// 使用 useRef 来维持展开状态,避免重新渲染时重置
|
// 使用 useRef 来维持展开状态,避免重新渲染时重置
|
||||||
@@ -176,7 +177,21 @@ const SectorDetails = ({ sortedSectors, totalStocks }) => {
|
|||||||
<HStack justify="space-between" align="center" wrap="wrap" spacing={3}>
|
<HStack justify="space-between" align="center" wrap="wrap" spacing={3}>
|
||||||
{/* 左侧:股票基本信息 */}
|
{/* 左侧:股票基本信息 */}
|
||||||
<HStack spacing={2} minW="200px">
|
<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>
|
<Badge colorScheme="purple" fontSize="xs">{stock.scode}</Badge>
|
||||||
{stock.continuous_days && (
|
{stock.continuous_days && (
|
||||||
<Badge
|
<Badge
|
||||||
|
|||||||
Reference in New Issue
Block a user