diff --git a/apps/admin/src/components/common/Inputs/AnswerInput.tsx b/apps/admin/src/components/common/Inputs/AnswerInput.tsx index a616d4d4..0d21eae0 100644 --- a/apps/admin/src/components/common/Inputs/AnswerInput.tsx +++ b/apps/admin/src/components/common/Inputs/AnswerInput.tsx @@ -1,6 +1,6 @@ import { Input } from '@components'; import { ProblemAnswerType } from '@types'; -import { forwardRef } from 'react'; +import { forwardRef, InputHTMLAttributes } from 'react'; const AnswerTypeList = ['MULTIPLE_CHOICE', 'SHORT_ANSWER']; const AnswerTypeName = { @@ -8,13 +8,14 @@ const AnswerTypeName = { SHORT_ANSWER: '주', }; -interface AnswerTypeSectionProps { +interface AnswerTypeSectionProps extends InputHTMLAttributes { selectedAnswerType: ProblemAnswerType | undefined; } -interface AnswerInputSectionProps { +interface AnswerInputSectionProps extends InputHTMLAttributes { selectedAnswerType: ProblemAnswerType | undefined; selectedAnswer: number | undefined; + isError: boolean; } const AnswerInput = ({ children }: { children: React.ReactNode }) => { @@ -27,10 +28,17 @@ const AnswerTypeSection = forwardRef(
{AnswerTypeList.map((answerType) => (