diff --git a/frontend/components/application/applicationLayout/RadioForCheck.component.tsx b/frontend/components/application/applicationLayout/RadioForCheck.component.tsx index 8f7c410e..f7944ff8 100644 --- a/frontend/components/application/applicationLayout/RadioForCheck.component.tsx +++ b/frontend/components/application/applicationLayout/RadioForCheck.component.tsx @@ -3,9 +3,10 @@ import type { ApplicationQuestion, ApplicationRadioForCheck, } from "@/src/constants/application/type"; -import { useLocalStorage } from "@/src/hooks/useLocalstorage.hook"; import { cn } from "@/src/utils/cn"; import Link from "next/link"; +import { ChangeEvent } from "react"; +import { useLocalStorage } from "@uidotdev/usehooks"; interface RadioCellProps { applicationQuestion: ApplicationQuestion; @@ -20,6 +21,11 @@ const RadioCell = ({ radioForCheckData.name, "동의하지 않습니다." ); + + const onSelectRadio = (e: ChangeEvent) => { + setRadio(e.target.value); + }; + return (
{ - setRadio(e.target.value); - }} + onChange={onSelectRadio} />