Skip to content

Commit 6c86783

Browse files
committed
set the urls
1 parent 46a30fe commit 6c86783

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { PARAM_KEY } from "./constants";
1818

1919
const preview: ProjectAnnotations<Renderer> = {
2020
parameters: {
21-
[PARAM_KEY.REPO]: `https://github.com/stackblitz/docs`,
21+
repositoryUrl: 'https://github.com/sulco/viteconf-storybook-demo',
2222
}
2323
};
2424

src/stories/Button.stories.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,29 @@ import type { Meta, StoryObj } from "@storybook/react";
22

33
import { Button } from "./Button";
44

5-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
65
const meta: Meta<typeof Button> = {
76
title: "Example/Button",
87
component: Button,
9-
// More on argTypes: https://storybook.js.org/docs/react/api/argtypes
108
argTypes: {
119
backgroundColor: { control: "color" },
1210
},
1311
tags: ["autodocs"],
1412
parameters: {
15-
// repositoryUrl: `https://github.com/stackblitz/docs`,
13+
repositoryUrl: `https://github.com/sulco/viteconf-storybook-demo`,
1614
},
1715
};
1816

1917
export default meta;
2018
type Story = StoryObj<typeof Button>;
2119

22-
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
2320
export const Primary: Story = {
24-
// More on args: https://storybook.js.org/docs/react/writing-stories/args
2521
args: {
2622
primary: true,
2723
label: "Button",
2824
},
2925
parameters: {
30-
// repositoryUrl: `https://github.com/stackblitz/docs`
31-
filePath: 'docs/links.ts'
26+
repositoryUrl: 'https://github.com/sulco/viteconf-storybook-demo',
27+
filePath: 'src/stories/Button.jsx'
3228
}
3329
};
3430

0 commit comments

Comments
 (0)