Skip to content

Commit 4b3d9f8

Browse files
committed
Refactor GitAuthSettingsPageView stories
1 parent a5440cb commit 4b3d9f8

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed
Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import { ComponentMeta, Story } from "@storybook/react";
2-
import {
3-
GitAuthSettingsPageView,
4-
GitAuthSettingsPageViewProps,
5-
} from "./GitAuthSettingsPageView";
1+
import { GitAuthSettingsPageView } from "./GitAuthSettingsPageView";
2+
import type { Meta, StoryObj } from "@storybook/react";
63

7-
export default {
4+
const meta: Meta<typeof GitAuthSettingsPageView> = {
85
title: "pages/GitAuthSettingsPageView",
96
component: GitAuthSettingsPageView,
107
args: {
@@ -19,9 +16,9 @@ export default {
1916
],
2017
},
2118
},
22-
} as ComponentMeta<typeof GitAuthSettingsPageView>;
19+
};
2320

24-
const Template: Story<GitAuthSettingsPageViewProps> = (args) => (
25-
<GitAuthSettingsPageView {...args} />
26-
);
27-
export const Page = Template.bind({});
21+
export default meta;
22+
type Story = StoryObj<typeof GitAuthSettingsPageView>;
23+
24+
export const Page: Story = {};

0 commit comments

Comments
 (0)