Skip to content

Commit

Permalink
fix: 대문자 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyugeon committed Oct 14, 2023
1 parent 6e38608 commit fb9e380
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/stories/Base/RadioButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ export default meta;
type Story = StoryObj<typeof RadioButton>;

type FormValues = {
Radio: string;
radio: string;
};

const RadioButtonWithUseForm = () => {
const { register, handleSubmit, watch } = useForm<FormValues>({
mode: 'all',
defaultValues: { Radio: '라디오 A' },
defaultValues: { radio: '라디오 A' },
});

const handleSubmitForm: SubmitHandler<FormValues> = ({ Radio }) => {
alert(`Submit as: ${Radio}`);
const handleSubmitForm: SubmitHandler<FormValues> = ({ radio }) => {
alert(`Submit as: ${radio}`);
};

return (
Expand All @@ -35,9 +35,9 @@ const RadioButtonWithUseForm = () => {
className="flex w-[43rem] flex-col gap-[1.6rem]"
>
<div className="flex justify-between">
<RadioButton {...register('Radio')} value="라디오 A" />
<RadioButton {...register('Radio')} value="라디오 B" />
<RadioButton {...register('Radio')} value="라디오 C" />
<RadioButton {...register('radio')} value="라디오 A" />
<RadioButton {...register('radio')} value="라디오 B" />
<RadioButton {...register('radio')} value="라디오 C" />
</div>
<Button size="large" type="submit">
Submit
Expand Down

0 comments on commit fb9e380

Please sign in to comment.