|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
import { LinkOutlined } from '@ant-design/icons'
|
|
|
|
|
import { Button, Flex, List, Popover } from 'antd'
|
|
|
|
|
import { useState } from 'react'
|
|
|
|
|
import { Popover, Flex, Button, List, Popconfirm } from 'antd'
|
|
|
|
|
|
|
|
|
|
const QuotesHistory = ((props) => {
|
|
|
|
|
|
|
|
|
@ -9,9 +10,9 @@ const QuotesHistory = ((props) => {
|
|
|
|
|
setOpen(newOpen)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const onSend = () => {
|
|
|
|
|
const handleCopyClick = (url) => {
|
|
|
|
|
navigator.clipboard.writeText(url)
|
|
|
|
|
setOpen(false)
|
|
|
|
|
// todo: send
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
@ -31,13 +32,12 @@ const QuotesHistory = ((props) => {
|
|
|
|
|
<List.Item className='' key={item.letterid} >
|
|
|
|
|
<List.Item.Meta
|
|
|
|
|
className='text-neutral-800'
|
|
|
|
|
title={<a target='_blank' href={item.letterurl}>{item.lettertitle}</a>}
|
|
|
|
|
title={<a target='_blank' href={item.letterurl}><LinkOutlined /> {item.lettertitle}</a>}
|
|
|
|
|
description={
|
|
|
|
|
<Flex justify='space-between'>
|
|
|
|
|
<span>{item.letterdate}</span>
|
|
|
|
|
<Button onClick={() => {
|
|
|
|
|
navigator.clipboard.writeText(item.letterurl)
|
|
|
|
|
setOpen(false)
|
|
|
|
|
handleCopyClick(item.letterurl)
|
|
|
|
|
}} size={'small'} type='link' key={'send'}>
|
|
|
|
|
复制
|
|
|
|
|
</Button>
|
|
|
|
|