update pay function
This commit is contained in:
@@ -819,7 +819,9 @@ const StockCard = ({ stock, idx }) => {
|
||||
</ModalHeader>
|
||||
<ModalCloseButton color="#eacd76" top={3} right={3} />
|
||||
<ModalBody p={6} bg={useColorModeValue('white', 'gray.800')}>
|
||||
<Box fontSize="md" color="#222" lineHeight={1.9} whiteSpace="pre-line" dangerouslySetInnerHTML={{ __html: (stock.summary || '').replace(/<br\s*\/?>(\s*)/g, '\n').replace(/\n{2,}/g, '\n').replace(/\n/g, '<br/>') }} />
|
||||
<Box fontSize="md" color="#222" lineHeight={1.9} whiteSpace="pre-wrap">
|
||||
{(stock.summary || '').replace(/<br\s*\/?>/gi, '\n')}
|
||||
</Box>
|
||||
</ModalBody>
|
||||
<ModalFooter bg={useColorModeValue('white', 'gray.800')} justifyContent="center">
|
||||
<Button onClick={onClose} colorScheme="yellow" borderRadius="md" px={8} fontWeight="bold">关闭</Button>
|
||||
|
||||
Reference in New Issue
Block a user