Skip to content

Commit

Permalink
Fix lint error in repository directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kamegoro committed Nov 1, 2023
1 parent 2a55f4c commit 0c3c5ed
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
16 changes: 8 additions & 8 deletions frontend/src/components/repository/ChartViewer.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
// ChartViewer.stories.ts|tsx

import { StoryFn, Meta } from "@storybook/react";
import { Meta } from "@storybook/react";
import ChartViewer from "./ChartViewer";

//👇 This default export determines where your story goes in the story list
export default {
const meta = {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: "ChartViewer",
component: ChartViewer,
} as Meta<typeof ChartViewer>;
} satisfies Meta<typeof ChartViewer>;

export const Default = {
args: defaultArgs,
};
export default meta;

const defaultArgs = {
chart: {
Expand All @@ -24,3 +20,7 @@ const defaultArgs = {
version: "v1.0.0",
},
};

export const Default = {
args: defaultArgs,
};
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
// RepositoriesList.stories.ts|tsx

import { StoryFn, Meta } from "@storybook/react";
import RepositoriesList from "./RepositoriesList";

//👇 This default export determines where your story goes in the story list
export default {
const meta = {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: "RepositoriesList",
component: RepositoriesList,
} as Meta<typeof RepositoriesList>;
} satisfies Meta<typeof RepositoriesList>;

export default meta;

//👇 We create a “template” of how args map to rendering
const Template: StoryFn<typeof RepositoriesList> = () => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
// RepositoryViewer.stories.ts|tsx

import { StoryFn, Meta } from "@storybook/react";
import RepositoryViewer from "./RepositoryViewer";

//👇 This default export determines where your story goes in the story list
export default {
const meta = {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: "RepositoryViewer",
component: RepositoryViewer,
} as Meta<typeof RepositoryViewer>;
} satisfies Meta<typeof RepositoryViewer>;

export default meta;

//👇 We create a “template” of how args map to rendering
const Template: StoryFn<typeof RepositoryViewer> = () => (
Expand Down

0 comments on commit 0c3c5ed

Please sign in to comment.