diff --git a/src/components/CheckboxContainer/CheckboxContainer.tsx b/src/components/CheckboxContainer/CheckboxContainer.tsx index 3373acd..54c404a 100644 --- a/src/components/CheckboxContainer/CheckboxContainer.tsx +++ b/src/components/CheckboxContainer/CheckboxContainer.tsx @@ -5,8 +5,9 @@ import Flex from '../Flex/Flex'; import Text from '../Text/Text'; interface CheckboxOptions { - checked: boolean; id: number; + name: string; + checked: boolean; [key: string]: any; } diff --git a/src/components/RadioContainer/RadioContainer.tsx b/src/components/RadioContainer/RadioContainer.tsx index 80bb0c3..47d7500 100644 --- a/src/components/RadioContainer/RadioContainer.tsx +++ b/src/components/RadioContainer/RadioContainer.tsx @@ -7,8 +7,9 @@ import Text from '../Text/Text'; type GapType = 'small' | 'large'; interface RadioOptions { - checked: boolean; + id: number; name: string; + checked: boolean; [key: string]: any; } interface Props { diff --git a/src/hooks/useCheckbox.ts b/src/hooks/useCheckbox.ts index ea330c0..6320fa5 100644 --- a/src/hooks/useCheckbox.ts +++ b/src/hooks/useCheckbox.ts @@ -1,8 +1,9 @@ import { ChangeEvent, useCallback, useState } from 'react'; interface CheckboxItem { - checked: boolean; id: number; + name: string; + checked: boolean; [key: string]: any; } diff --git a/src/hooks/useRadio.ts b/src/hooks/useRadio.ts index cd4ad2c..f6e6365 100644 --- a/src/hooks/useRadio.ts +++ b/src/hooks/useRadio.ts @@ -1,8 +1,9 @@ import { ChangeEvent, useCallback, useState } from 'react'; interface RadioItem { - checked: boolean; + id: number; name: string; + checked: boolean; [key: string]: any; }