@@ -11,9 +11,24 @@ import {
11
11
import FeedContent from './FeedContent'
12
12
import FeedLabel from './FeedLabel'
13
13
14
+ /**
15
+ * A feed contains an event.
16
+ */
14
17
function FeedEvent ( props ) {
15
- const { content, children, className, date, extraImages, extraText, image, icon, meta, summary } = props
16
- const classes = cx ( className , 'event' )
18
+ const {
19
+ content,
20
+ children,
21
+ className,
22
+ date,
23
+ extraImages,
24
+ extraText,
25
+ image,
26
+ icon,
27
+ meta,
28
+ summary,
29
+ } = props
30
+
31
+ const classes = cx ( 'event' , className )
17
32
const rest = getUnhandledProps ( FeedEvent , props )
18
33
const ElementType = getElementType ( FeedEvent , props )
19
34
@@ -47,16 +62,16 @@ FeedEvent.propTypes = {
47
62
className : PropTypes . string ,
48
63
49
64
/** Shorthand for FeedContent. */
50
- content : FeedContent . propTypes . content ,
65
+ content : customPropTypes . itemShorthand ,
51
66
52
67
/** Shorthand for FeedDate. */
53
- date : FeedContent . propTypes . date ,
68
+ date : customPropTypes . itemShorthand ,
54
69
55
70
/** Shorthand for FeedExtra with images. */
56
- extraImages : FeedContent . propTypes . extraImages ,
71
+ extraImages : customPropTypes . itemShorthand ,
57
72
58
73
/** Shorthand for FeedExtra with content. */
59
- extraText : FeedContent . propTypes . extraText ,
74
+ extraText : customPropTypes . itemShorthand ,
60
75
61
76
/** An event can contain icon label. */
62
77
icon : customPropTypes . itemShorthand ,
@@ -65,10 +80,10 @@ FeedEvent.propTypes = {
65
80
image : customPropTypes . itemShorthand ,
66
81
67
82
/** Shorthand for FeedMeta. */
68
- meta : FeedContent . propTypes . meta ,
83
+ meta : customPropTypes . itemShorthand ,
69
84
70
85
/** Shorthand for FeedSummary. */
71
- summary : FeedContent . propTypes . summary ,
86
+ summary : customPropTypes . itemShorthand ,
72
87
}
73
88
74
89
export default FeedEvent
0 commit comments