Skip to content

Commit f5c5cb6

Browse files
author
Julien Bouquillon
committed
fix
1 parent 1f31fb1 commit f5c5cb6

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/Card.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ export type CardProps = {
2525
endDetail?: ReactNode;
2626
badges?: ReactNode[]; // todo: restrict to badge component ? these badges are display on the image
2727
/** where actions can be placed */
28-
footer?: ReactNode;
28+
footer?: ReactNode;
2929
/** only affect the text */
30-
size?: "small" | "medium" | "large";
30+
size?: "small" | "medium" | "large";
3131
/** make the whole card clickable */
32-
enlargeLink?: boolean;
33-
/** only needed when enlargeMode=true */
34-
iconId?: FrIconClassName | RiIconClassName;
32+
enlargeLink?: boolean;
33+
/** only needed when enlargeLink=true */
34+
iconId?: FrIconClassName | RiIconClassName;
3535
shadow?: boolean;
3636
background?: boolean;
3737
border?: boolean;
@@ -61,7 +61,7 @@ export type CardProps = {
6161

6262
export namespace CardProps {
6363
export type Default = {
64-
horizontal?: never;
64+
horizontal?: never;
6565
};
6666

6767
export type Horizontal = {

stories/Card.stories.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export const CardHorizontale = getStory(
173173
...defaultProps,
174174
horizontal: true
175175
},
176-
{ description: "Carte horizontale", containerWidth: 700 }
176+
{ description: "Carte horizontale", defaultContainerWidth: 700 }
177177
);
178178

179179
export const CardHorizontaleSM = getStory(
@@ -182,7 +182,7 @@ export const CardHorizontaleSM = getStory(
182182
horizontal: true,
183183
size: "small"
184184
},
185-
{ description: "Carte horizontale", containerWidth: 500 }
185+
{ description: "Carte horizontale", defaultContainerWidth: 500 }
186186
);
187187

188188
export const CardHorizontaleLG = getStory(
@@ -191,7 +191,7 @@ export const CardHorizontaleLG = getStory(
191191
horizontal: true,
192192
size: "large"
193193
},
194-
{ description: "Carte horizontale", containerWidth: 900 }
194+
{ description: "Carte horizontale", defaultContainerWidth: 900 }
195195
);
196196

197197
export const CardHorizontaleWithoutImage = getStory(
@@ -207,7 +207,7 @@ export const CardHorizontaleWithoutImage = getStory(
207207
</ul>
208208
)
209209
},
210-
{ description: "Carte horizontale sans image", containerWidth: 900 }
210+
{ description: "Carte horizontale sans image", defaultContainerWidth: 900 }
211211
);
212212

213213
export const CardHorizontaleWithoutImageAndEnlargeLink = getStory(
@@ -218,7 +218,7 @@ export const CardHorizontaleWithoutImageAndEnlargeLink = getStory(
218218
size: "large",
219219
imageUrl: undefined
220220
},
221-
{ description: "Carte horizontale sans image", containerWidth: 900 }
221+
{ description: "Carte horizontale sans image", defaultContainerWidth: 900 }
222222
);
223223

224224
export const CardHorizontaleWithActions = getStory(
@@ -245,7 +245,7 @@ export const CardHorizontaleWithActions = getStory(
245245
</ul>
246246
)
247247
},
248-
{ description: "Carte horizontale", containerWidth: 900 }
248+
{ description: "Carte horizontale", defaultContainerWidth: 900 }
249249
);
250250

251251
export const CardGrey = getStory(
@@ -254,5 +254,5 @@ export const CardGrey = getStory(
254254
horizontal: true,
255255
grey: false
256256
},
257-
{ description: "Carte horizontale grey", containerWidth: 900 }
257+
{ description: "Carte horizontale grey", defaultContainerWidth: 900 }
258258
);

0 commit comments

Comments
 (0)