Skip to content

Commit d17a6bb

Browse files
committed
add KRLX schedule view
1 parent 6dab56f commit d17a6bb

File tree

4 files changed

+27
-4
lines changed

4 files changed

+27
-4
lines changed

source/navigation.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ import CalendarView, {EventDetail as EventDetailView} from './views/calendar'
88
import {ContactsView, ContactsDetailView} from './views/contacts'
99
import {DictionaryView, DictionaryDetailView} from './views/dictionary'
1010
import {HomeView, EditHomeView} from './views/home'
11-
import StreamingView, {KSTOScheduleView} from './views/streaming'
11+
import StreamingView, {
12+
KSTOScheduleView,
13+
KRLXScheduleView,
14+
} from './views/streaming'
1215
import {
1316
MenusView,
1417
CarletonBurtonMenuScreen,
@@ -83,6 +86,7 @@ export const AppNavigator = StackNavigator(
8386
SISView: {screen: SISView},
8487
StreamingView: {screen: StreamingView},
8588
KSTOScheduleView: {screen: KSTOScheduleView},
89+
KRLXScheduleView: {screen: KRLXScheduleView},
8690
StudentOrgsDetailView: {screen: StudentOrgsDetailView},
8791
StudentOrgsView: {screen: StudentOrgsView},
8892
TransportationView: {screen: TransportationView},

source/views/streaming/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {RadioControllerView} from './radio'
99
import {WebcamsView} from './webcams'
1010
import {StreamListView} from './streams'
1111

12-
export {KSTOScheduleView} from './radio'
12+
export {KSTOScheduleView, KRLXScheduleView} from './radio'
1313

1414
export default TabNavigator(
1515
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// @flow
22

33
export {RadioControllerView} from './controller'
4-
export {KSTOScheduleView} from './schedule'
4+
export {KSTOScheduleView, KRLXScheduleView} from './schedule'

source/views/streaming/radio/schedule.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React from 'react'
44
import {GoogleCalendarView} from '../../calendar/calendar-google'
55
import type {TopLevelViewPropsType} from '../../types'
66

7-
type Props = TopLevelViewPropsType & {}
7+
type Props = TopLevelViewPropsType
88

99
export class KSTOScheduleView extends React.PureComponent<Props> {
1010
static navigationOptions = {
@@ -24,3 +24,22 @@ export class KSTOScheduleView extends React.PureComponent<Props> {
2424
)
2525
}
2626
}
27+
28+
export class KRLXScheduleView extends React.PureComponent<Props> {
29+
static navigationOptions = {
30+
title: 'Show Schedule',
31+
}
32+
33+
render() {
34+
return (
35+
<GoogleCalendarView
36+
calendarId="[email protected]"
37+
navigation={this.props.navigation}
38+
poweredBy={{
39+
title: 'Powered by the KRLX team',
40+
href: 'http://www.krlx.org/schedule/',
41+
}}
42+
/>
43+
)
44+
}
45+
}

0 commit comments

Comments
 (0)