update pay ui
This commit is contained in:
@@ -203,23 +203,19 @@ const MobileDrawer = memo(({
|
||||
<Badge size="xs" colorScheme="green">HOT</Badge>
|
||||
</HStack>
|
||||
</Link>
|
||||
<Link
|
||||
onClick={() => handleNavigate('/trading-simulation')}
|
||||
<Box
|
||||
py={1}
|
||||
px={3}
|
||||
borderRadius="md"
|
||||
_hover={{ bg: 'gray.100' }}
|
||||
cursor="pointer"
|
||||
bg={location.pathname.includes('/trading-simulation') ? 'blue.50' : 'transparent'}
|
||||
borderLeft={location.pathname.includes('/trading-simulation') ? '3px solid' : 'none'}
|
||||
borderColor="blue.600"
|
||||
fontWeight={location.pathname.includes('/trading-simulation') ? 'bold' : 'normal'}
|
||||
cursor="not-allowed"
|
||||
opacity={0.5}
|
||||
bg="transparent"
|
||||
>
|
||||
<HStack justify="space-between">
|
||||
<Text fontSize="sm">模拟盘</Text>
|
||||
<Badge size="xs" colorScheme="red">NEW</Badge>
|
||||
<Text fontSize="sm" color="gray.400">模拟盘</Text>
|
||||
<Badge size="xs" colorScheme="gray">即将推出</Badge>
|
||||
</HStack>
|
||||
</Link>
|
||||
</Box>
|
||||
</VStack>
|
||||
</Box>
|
||||
|
||||
|
||||
@@ -177,19 +177,15 @@ const DesktopNav = memo(({ isAuthenticated, user }) => {
|
||||
</Flex>
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
onClick={() => {
|
||||
navigate('/trading-simulation');
|
||||
marketReviewMenu.onClose(); // 跳转后关闭菜单
|
||||
}}
|
||||
isDisabled
|
||||
borderRadius="md"
|
||||
bg={location.pathname.includes('/trading-simulation') ? 'blue.50' : 'transparent'}
|
||||
borderLeft={location.pathname.includes('/trading-simulation') ? '3px solid' : 'none'}
|
||||
borderColor="blue.600"
|
||||
fontWeight={location.pathname.includes('/trading-simulation') ? 'bold' : 'normal'}
|
||||
bg="transparent"
|
||||
opacity={0.5}
|
||||
cursor="not-allowed"
|
||||
>
|
||||
<Flex justify="space-between" align="center" w="100%">
|
||||
<Text fontSize="sm">模拟盘</Text>
|
||||
<Badge size="sm" colorScheme="red">NEW</Badge>
|
||||
<Text fontSize="sm" color="gray.400">模拟盘</Text>
|
||||
<Badge size="sm" colorScheme="gray">即将推出</Badge>
|
||||
</Flex>
|
||||
</MenuItem>
|
||||
</MenuList>
|
||||
|
||||
@@ -122,16 +122,15 @@ const MoreMenu = memo(({ isAuthenticated, user }) => {
|
||||
</Flex>
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
onClick={() => {
|
||||
moreMenu.onClose(); // 先关闭菜单
|
||||
navigate('/trading-simulation');
|
||||
}}
|
||||
isDisabled
|
||||
borderRadius="md"
|
||||
bg={location.pathname.includes('/trading-simulation') ? 'blue.50' : 'transparent'}
|
||||
bg="transparent"
|
||||
opacity={0.5}
|
||||
cursor="not-allowed"
|
||||
>
|
||||
<Flex justify="space-between" align="center" w="100%">
|
||||
<Text fontSize="sm">模拟盘</Text>
|
||||
<Badge size="sm" colorScheme="red">NEW</Badge>
|
||||
<Text fontSize="sm" color="gray.400">模拟盘</Text>
|
||||
<Badge size="sm" colorScheme="gray">即将推出</Badge>
|
||||
</Flex>
|
||||
</MenuItem>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user