Skip to content

Commit e416ee1

Browse files
marc-gavaniergarronej
authored andcommitted
fix: add component props as getStoryFactory generic for alert and notice components
1 parent 3931634 commit e416ee1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

stories/Alert.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { getStoryFactory, logCallbacks } from "./getStory";
55
import { assert } from "tsafe/assert";
66
import type { Equals } from "tsafe";
77

8-
const { meta, getStory } = getStoryFactory({
8+
const { meta, getStory } = getStoryFactory<AlertProps>({
99
sectionName,
1010
"wrappedComponent": { Alert },
1111
"description": `

stories/Notice.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Notice } from "../dist/Notice";
2+
import { NoticeProps } from "../src/Notice";
23
import { sectionName } from "./sectionName";
34
import { getStoryFactory, logCallbacks } from "./getStory";
45

5-
const { meta, getStory } = getStoryFactory({
6+
const { meta, getStory } = getStoryFactory<NoticeProps>({
67
sectionName,
78
"wrappedComponent": { Notice },
89
"description": `

0 commit comments

Comments
 (0)