Skip to content

Commit

Permalink
Update: fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
tuzkituan authored Oct 27, 2023
1 parent 4e5ea34 commit fb4a434
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
20 changes: 0 additions & 20 deletions lib/components/radio/Radio.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { Meta, StoryObj } from "@storybook/react";

import { Radio } from "./Radio";
import { IRadioGroup } from "./Radio.types";

const meta = {
title: "FORMS/Radio/Radio",
Expand Down Expand Up @@ -60,22 +59,3 @@ export const Disabled: Story = {
isDisabled: true,
},
};

const radioGroupArgs: IRadioGroup = {
value: "1",
layout: "horizontal",
onChange: (val) => console.log("checked: ", val),
};

export const RadioGroup = (props: IRadioGroup) => {
const all = { ...radioGroupArgs, ...props };
return (
<Radio.Group {...all}>
<Radio value="1">Option A</Radio>
<Radio value="2">Option B</Radio>
<Radio value="3">Option C</Radio>
</Radio.Group>
);
};

RadioGroup.args = radioGroupArgs;
2 changes: 1 addition & 1 deletion lib/components/radio/RadioGroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ export const Primary: Story = (props: IRadioGroup) => {
<Radio value="3">Option C</Radio>
</RadioGroup>
);
};
};``

Primary.args = radioGroupArgs;

0 comments on commit fb4a434

Please sign in to comment.