Skip to content

Commit c57b400

Browse files
committed
Add types to default meta storybook exports
I think this is right?
1 parent f224ebc commit c57b400

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

site/src/pages/DeploySettingsPage/OAuth2AppsSettingsPage/CreateOAuth2AppPageView.stories.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import type { StoryObj } from "@storybook/react";
1+
import type { Meta, StoryObj } from "@storybook/react";
22
import { mockApiError } from "testHelpers/entities";
33
import { CreateOAuth2AppPageView } from "./CreateOAuth2AppPageView";
44

5-
export default {
5+
const meta: Meta = {
66
title: "pages/DeploySettingsPage/CreateOAuth2AppPageView",
77
component: CreateOAuth2AppPageView,
88
};
9+
export default meta;
910

1011
type Story = StoryObj<typeof CreateOAuth2AppPageView>;
1112

site/src/pages/DeploySettingsPage/OAuth2AppsSettingsPage/EditOAuth2AppPageView.stories.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
import type { StoryObj } from "@storybook/react";
1+
import type { Meta, StoryObj } from "@storybook/react";
22
import {
33
MockOAuth2Apps,
44
MockOAuth2AppSecrets,
55
mockApiError,
66
} from "testHelpers/entities";
77
import { EditOAuth2AppPageView } from "./EditOAuth2AppPageView";
88

9-
export default {
9+
const meta: Meta = {
1010
title: "pages/DeploySettingsPage/EditOAuth2AppPageView",
1111
component: EditOAuth2AppPageView,
1212
};
13+
export default meta;
1314

1415
type Story = StoryObj<typeof EditOAuth2AppPageView>;
1516

site/src/pages/DeploySettingsPage/OAuth2AppsSettingsPage/OAuth2AppsSettingsPageView.stories.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import type { StoryObj } from "@storybook/react";
1+
import type { Meta, StoryObj } from "@storybook/react";
22
import { MockOAuth2Apps } from "testHelpers/entities";
33
import OAuth2AppsSettingsPageView from "./OAuth2AppsSettingsPageView";
44

5-
export default {
5+
const meta: Meta = {
66
title: "pages/DeploySettingsPage/OAuth2AppsSettingsPageView",
77
component: OAuth2AppsSettingsPageView,
88
};
9+
export default meta;
910

1011
type Story = StoryObj<typeof OAuth2AppsSettingsPageView>;
1112

0 commit comments

Comments
 (0)