Browse Source

Explicitly add children prop to Timeline. (#21265)

pull/21289/head
Chiciuc Nicușor 5 years ago
committed by GitHub
parent
commit
87cbe0168f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      components/timeline/Timeline.tsx
  2. 1
      components/timeline/TimelineItem.tsx

1
components/timeline/Timeline.tsx

@ -13,6 +13,7 @@ export interface TimelineProps {
style?: React.CSSProperties;
reverse?: boolean;
mode?: 'left' | 'alternate' | 'right';
children?: React.ReactNode;
}
export default class Timeline extends React.Component<TimelineProps, any> {

1
components/timeline/TimelineItem.tsx

@ -11,6 +11,7 @@ export interface TimeLineItemProps {
pending?: boolean;
position?: string;
style?: React.CSSProperties;
children?: React.ReactNode;
}
const TimelineItem: React.SFC<TimeLineItemProps> = props => (

Loading…
Cancel
Save