Commit 941f8201 by HoMeTown

fix: 修复bug

parent 88c37852
import { Button, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, Textarea } from '@nextui-org/react'
import { Button, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader } from '@nextui-org/react'
import { useEffect, useState } from 'react'
import { fetchGetFeedbackConfig, fetchSubmitFeedback } from '@/api/chat'
import type { Answer } from '@/types/chat'
......@@ -11,7 +11,7 @@ interface UnLikeModalProps {
export const UnLikeModal: React.FC<UnLikeModalProps> = ({ isOpen, onClose, answer }) => {
const [feedbackConfig, setFeedbackConfig] = useState<any>()
const [answerValue, setAnswerValue] = useState('')
const [answerValue] = useState('')
const getConfig = async () => {
const res = await fetchGetFeedbackConfig()
if (res.ok) {
......@@ -69,13 +69,13 @@ export const UnLikeModal: React.FC<UnLikeModalProps> = ({ isOpen, onClose, answe
</div>
</Button>
))}
<Textarea
{/* <Textarea
value={answerValue}
onValueChange={setAnswerValue}
label="留下更多反馈"
placeholder=""
className="w-full mt-[10px]"
/>
/> */}
</div>
</ModalBody>
<ModalFooter>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment