Skip to content

Commit 3f62491

Browse files
committed
Update Card.stories.tsx
1 parent 8016974 commit 3f62491

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

stories/Card.stories.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
import React from "react";
21
import { Card, type CardProps } from "../dist/Card";
32
import { Badge } from "../dist/Badge";
43
import { Tag } from "../dist/Tag";
54
import { sectionName } from "./sectionName";
65
import { getStoryFactory } from "./getStory";
76
import { assert } from "tsafe/assert";
87
import type { Equals } from "tsafe";
9-
8+
import TechnicalError from "../dist/picto/TechnicalError";
9+
import { fr } from "../dist";
1010
import artworkOvoidSvgUrl from "../dist/dsfr/artwork/background/ovoid.svg";
1111
import artworkTechnicalErrorSvgUrl from "../dist/dsfr/artwork/pictograms/system/technical-error.svg";
1212

13-
import { fr } from "../dist";
14-
1513
const { meta, getStory } = getStoryFactory({
1614
sectionName,
1715
defaultContainerWidth: 360,
@@ -468,3 +466,11 @@ export const CardWithImageComponent = getStory({
468466
</svg>
469467
)
470468
});
469+
470+
export const CardWithPictogram = getStory({
471+
...defaultProps,
472+
enlargeLink: false,
473+
imageUrl: undefined,
474+
imageAlt: undefined,
475+
imageComponent: <TechnicalError className={fr.cx("fr-responsive-img")} />
476+
});

0 commit comments

Comments
 (0)