Skip to content

Commit 0b02f31

Browse files
committed
use event descriptions as the detail sections on both schedule views
1 parent 946d712 commit 0b02f31

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

source/views/streaming/radio/schedule.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ export class KSTOScheduleView extends React.PureComponent<Props> {
1515
return (
1616
<GoogleCalendarView
1717
calendarId="[email protected]"
18+
eventMapper={event => ({
19+
...event,
20+
config: {
21+
...event.config,
22+
subtitle: 'description',
23+
},
24+
})}
1825
navigation={this.props.navigation}
1926
poweredBy={{
2027
title: 'Powered by the KSTO team',
@@ -34,6 +41,13 @@ export class KRLXScheduleView extends React.PureComponent<Props> {
3441
return (
3542
<GoogleCalendarView
3643
calendarId="[email protected]"
44+
eventMapper={event => ({
45+
...event,
46+
config: {
47+
...event.config,
48+
subtitle: 'description',
49+
},
50+
})}
3751
navigation={this.props.navigation}
3852
poweredBy={{
3953
title: 'Powered by the KRLX team',

0 commit comments

Comments
 (0)