diff --git a/packages/ui/src/components/chat/QuestionCard.tsx b/packages/ui/src/components/chat/QuestionCard.tsx index d6feb365..d3e9adfe 100644 --- a/packages/ui/src/components/chat/QuestionCard.tsx +++ b/packages/ui/src/components/chat/QuestionCard.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { RiArrowRightSLine, RiCheckLine, RiCloseLine, RiEditLine, RiListCheck3, RiQuestionLine } from '@remixicon/react'; import { Checkbox } from '@/components/ui/checkbox'; +import { Radio } from '@/components/ui/radio'; import { cn } from '@/lib/utils'; import type { QuestionRequest } from '@/types/question'; @@ -295,11 +296,19 @@ export const QuestionCard: React.FC = ({ question }) => { >
- handleToggleOption(option.label)} - disabled={isResponding} - /> + {isMultiple ? ( + handleToggleOption(option.label)} + disabled={isResponding} + /> + ) : ( + handleToggleOption(option.label)} + disabled={isResponding} + /> + )}
diff --git a/packages/ui/src/components/ui/radio.tsx b/packages/ui/src/components/ui/radio.tsx index 29926790..c1864f5a 100644 --- a/packages/ui/src/components/ui/radio.tsx +++ b/packages/ui/src/components/ui/radio.tsx @@ -62,15 +62,14 @@ export const Radio = React.memo(function Radio({ className, )} > - {checked ? ( - - ) : null} + ); });