Skip to content

Commit dfbc6aa

Browse files
committed
Fix incorrect React.Ref type argument in generative-ai
1 parent 16ef002 commit dfbc6aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compass-generative-ai/src/components/ai-feedback.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ type AIFeedbackProps = {
8080
function AIFeedback({ onSubmitFeedback }: AIFeedbackProps) {
8181
const darkMode = useDarkMode();
8282

83-
const feedbackPositiveButtonRef = useRef<HTMLInputElement>(null);
84-
const feedbackNegativeButtonRef = useRef<HTMLInputElement>(null);
83+
const feedbackPositiveButtonRef = useRef<HTMLButtonElement>(null);
84+
const feedbackNegativeButtonRef = useRef<HTMLButtonElement>(null);
8585

8686
const [chosenFeedbackOption, setChosenFeedbackOption] = useState<
8787
'none' | 'positive' | 'negative'

0 commit comments

Comments
 (0)