@@ -9,35 +9,39 @@ const extractImageUrl = input => {
99 return matches ? matches [ 1 ] : '' ;
1010} ;
1111
12- const RowEvent = props => {
12+ const RowEvent = ( {
13+ link,
14+ isMultiLine,
15+ fluid,
16+ description,
17+ name,
18+ venue,
19+ time,
20+ yesCount,
21+ status,
22+ } ) => {
1323 return (
14- < Card fluid = { props . fluid } raised centered target = "_blank" href = { props . link } >
15- { props . description ? (
16- < Image src = { extractImageUrl ( props . description ) } />
17- ) : (
18- < div />
19- ) }
24+ < Card fluid = { fluid } raised centered target = "_blank" href = { link } >
25+ { description ? < Image src = { extractImageUrl ( description ) } /> : < div /> }
2026 < Card . Content >
21- < Card . Header > { props . name } </ Card . Header >
27+ < Card . Header > { name } </ Card . Header >
2228 < div className = "card_venue" >
23- < Card . Meta >
24- { props . venue === undefined ? 'Online' : props . venue . name }
25- </ Card . Meta >
29+ < Card . Meta > { venue === undefined ? 'Online' : venue . name } </ Card . Meta >
2630 </ div >
2731 </ Card . Content >
2832 < Card . Content extra >
2933 < span className = "card_icons" >
3034 < Icon name = "clock" />
31- { format ( props . time , "h:mm A, ddd MMM Do 'YY" ) }
35+ { format ( time , "h:mm A, ddd MMM Do 'YY" ) }
3236 </ span >
3337 < span className = "card_icons" >
3438 < Icon name = "users" />
35- { props . yesCount }
36- { props . status === 'upcoming' ? ' attending' : ' attended' }
39+ { yesCount }
40+ { status === 'upcoming' ? ' attending' : ' attended' }
3741 </ span >
3842 < span className = "card_icons" >
3943 < Icon name = "log out" />
40- { props . venue === undefined ? 'Free session' : 'Free entry' }
44+ { venue === undefined ? 'Free session' : 'Free entry' }
4145 </ span >
4246 </ Card . Content >
4347 < style jsx > { `
@@ -46,6 +50,8 @@ const RowEvent = props => {
4650 }
4751 .card_icons {
4852 margin-right: 15px;
53+ display: ${ isMultiLine ? 'block' : null } ;
54+ text-align: left;
4955 }
5056 @media (max-width: 700px) {
5157 .card_icons {
0 commit comments