Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sdream-ai-fe
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
侯明涛
sdream-ai-fe
Commits
941f8201
Commit
941f8201
authored
Jan 23, 2025
by
HoMeTown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复bug
parent
88c37852
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/components/UnLikeModal/index.tsx
+4
-4
No files found.
src/components/UnLikeModal/index.tsx
View file @
941f8201
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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment