Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: fix build error #14

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;