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 { useEffect, useState } from 'react'
import { fetchGetFeedbackConfig, fetchSubmitFeedback } from '@/api/chat' import { fetchGetFeedbackConfig, fetchSubmitFeedback } from '@/api/chat'
import type { Answer } from '@/types/chat' import type { Answer } from '@/types/chat'
...@@ -11,7 +11,7 @@ interface UnLikeModalProps { ...@@ -11,7 +11,7 @@ interface UnLikeModalProps {
export const UnLikeModal: React.FC<UnLikeModalProps> = ({ isOpen, onClose, answer }) => { export const UnLikeModal: React.FC<UnLikeModalProps> = ({ isOpen, onClose, answer }) => {
const [feedbackConfig, setFeedbackConfig] = useState<any>() const [feedbackConfig, setFeedbackConfig] = useState<any>()
const [answerValue, setAnswerValue] = useState('') const [answerValue] = useState('')
const getConfig = async () => { const getConfig = async () => {
const res = await fetchGetFeedbackConfig() const res = await fetchGetFeedbackConfig()
if (res.ok) { if (res.ok) {
...@@ -69,13 +69,13 @@ export const UnLikeModal: React.FC<UnLikeModalProps> = ({ isOpen, onClose, answe ...@@ -69,13 +69,13 @@ export const UnLikeModal: React.FC<UnLikeModalProps> = ({ isOpen, onClose, answe
</div> </div>
</Button> </Button>
))} ))}
<Textarea {/* <Textarea
value={answerValue} value={answerValue}
onValueChange={setAnswerValue} onValueChange={setAnswerValue}
label="留下更多反馈" label="留下更多反馈"
placeholder="" placeholder=""
className="w-full mt-[10px]" className="w-full mt-[10px]"
/> /> */}
</div> </div>
</ModalBody> </ModalBody>
<ModalFooter> <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