Skip to content

Commit 97c90e8

Browse files
committed
Adress review
1 parent 8e4219c commit 97c90e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

code/core/src/types/modules/core-common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ export type TagsOptions = Record<Tag, Partial<TagOptions>>;
348348
export interface ComponentManifest {
349349
id: string;
350350
path: string;
351-
name?: string;
351+
name: string;
352352
description?: string;
353353
import?: string;
354354
summary?: string;

code/renderers/react/src/componentManifest/generator.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ test('fall back to index title when no component name', async () => {
490490
args: { onClick: fn() },
491491
};
492492
493-
export const Primary = {};
493+
export const Primary = () => <Button csf1="story" />;
494494
`;
495495
expect(await getManifestForStory(code)).toMatchInlineSnapshot(`
496496
{
@@ -499,7 +499,7 @@ test('fall back to index title when no component name', async () => {
499499
"examples": [
500500
{
501501
"name": "Primary",
502-
"snippet": "const Primary = () => <Button onClick={fn()}></Button>;",
502+
"snippet": "const Primary = () => <Button csf1="story" />;",
503503
},
504504
],
505505
"id": "example-button",

0 commit comments

Comments
 (0)