File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1- import React from "react" ;
21import { Card , type CardProps } from "../dist/Card" ;
32import { Badge } from "../dist/Badge" ;
43import { Tag } from "../dist/Tag" ;
54import { sectionName } from "./sectionName" ;
65import { getStoryFactory } from "./getStory" ;
76import { assert } from "tsafe/assert" ;
87import type { Equals } from "tsafe" ;
9-
8+ import TechnicalError from "../dist/picto/TechnicalError" ;
9+ import { fr } from "../dist" ;
1010import artworkOvoidSvgUrl from "../dist/dsfr/artwork/background/ovoid.svg" ;
1111import artworkTechnicalErrorSvgUrl from "../dist/dsfr/artwork/pictograms/system/technical-error.svg" ;
1212
13- import { fr } from "../dist" ;
14-
1513const { 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+ } ) ;
You can’t perform that action at this time.
0 commit comments