Skip to content

Commit 5374fc4

Browse files
committed
Fixed types for addFeedback
1 parent 38cbdde commit 5374fc4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

apps/webapp/app/components/AskAI.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
HandThumbUpIcon,
66
StopIcon,
77
} from "@heroicons/react/20/solid";
8-
import { KapaProvider, QA, useChat } from "@kapaai/react-sdk";
8+
import { FeedbackComment, KapaProvider, QA, useChat } from "@kapaai/react-sdk";
99
import { useSearchParams } from "@remix-run/react";
1010
import { motion } from "framer-motion";
1111
import { marked } from "marked";
@@ -171,7 +171,11 @@ function ChatMessages({
171171
onReset: () => void;
172172
onExampleClick: (question: string) => void;
173173
error: string | null;
174-
addFeedback: (questionAnswerId: string, reaction: "upvote" | "downvote", comment?: any) => void;
174+
addFeedback: (
175+
questionAnswerId: string,
176+
reaction: "upvote" | "downvote",
177+
comment?: FeedbackComment
178+
) => void;
175179
}) {
176180
const [feedbackGivenForQAs, setFeedbackGivenForQAs] = useState<Set<string>>(new Set());
177181

0 commit comments

Comments
 (0)