Skip to content

Commit 64d9d3d

Browse files
committed
🐛 Fix React types for TimelineItem
1 parent 5bfc16f commit 64d9d3d

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

scripts/buildTypes.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ const buildTypes = type => {
5757
'Rating',
5858
'Spinner',
5959
'Table',
60-
'TimelineItem',
6160
'Progress'
6261
]
6362

src/components/TimelineItem/TimelineItem.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
import React from 'react'
2-
import type { TimelineItemProps } from './timelineitem'
2+
import type { ReactTimelineItemProps } from './timelineitem'
33

44
import styles from './timelineitem.module.scss'
55
import { classNames } from '../../utils/classNames'
66

7-
type ReactTimelineItemProps = {
8-
TitleTag?: keyof JSX.IntrinsicElements
9-
children: React.ReactNode
10-
} & Omit<TimelineItemProps, 'titleTag'>
11-
127
const TimelineItem = ({
138
title,
149
TitleTag = 'span',

src/components/TimelineItem/timelineitem.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@ export type TimelineItemProps = {
33
titleTag?: string
44
className?: string
55
}
6+
7+
export type ReactTimelineItemProps = {
8+
TitleTag?: keyof JSX.IntrinsicElements
9+
children: React.ReactNode
10+
} & Omit<TimelineItemProps, 'titleTag'>

0 commit comments

Comments
 (0)