Skip to content

Commit 9d6a11e

Browse files
Merge pull request #395 from storybookjs/fix-cardinal-types
type the size prop for Cardinal.defaultProps
2 parents 91da4d5 + 28d1c7a commit 9d6a11e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/Cardinal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,13 @@ Cardinal.defaultProps = {
240240
onHover: () => 0,
241241
onClick: () => 0,
242242
active: false,
243-
size: 'large',
244-
status: 'default',
243+
size: 'large' as Size,
244+
status: 'default' as Status,
245245
count: '000',
246246
countLink: null,
247247
noPlural: false,
248248
text: 'loading',
249249
CountWrapper: DefaultWrapper,
250250
TextWrapper: DefaultWrapper,
251-
alignment: 'left',
251+
alignment: 'left' as Alignment,
252252
};

0 commit comments

Comments
 (0)