mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-08-03 12:40:24 +08:00
@@ -6,9 +6,10 @@ import { TrashIcon } from '@primer/octicons-react'
|
||||
DeleteButton.propTypes = {
|
||||
onConfirm: PropTypes.func.isRequired,
|
||||
size: PropTypes.number.isRequired,
|
||||
text: PropTypes.string.isRequired,
|
||||
}
|
||||
|
||||
function DeleteButton({ onConfirm, size }) {
|
||||
function DeleteButton({ onConfirm, size, text }) {
|
||||
const { t } = useTranslation()
|
||||
const [waitConfirm, setWaitConfirm] = useState(false)
|
||||
const confirmRef = useRef(null)
|
||||
@@ -38,7 +39,7 @@ function DeleteButton({ onConfirm, size }) {
|
||||
{t('Confirm')}
|
||||
</button>
|
||||
<span
|
||||
title={t('Clear Conversation')}
|
||||
title={text}
|
||||
className="gpt-util-icon"
|
||||
style={waitConfirm ? { display: 'none' } : {}}
|
||||
onClick={() => {
|
||||
|
||||
Reference in New Issue
Block a user