File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ import * as c from '../components/colors'
1111import { ButtonCell } from '../components/cells/button'
1212import { addToCalendar } from './calendar-util'
1313import delay from 'delay'
14+ import { ListFooter } from '../components/list'
15+
16+ const STO_CALENDAR_URL = 'https://www.stolaf.edu/calendar'
1417
1518const styles = StyleSheet . create ( {
1619 name : {
@@ -165,6 +168,11 @@ export class EventDetail extends React.PureComponent {
165168 message = { this . state . message }
166169 disabled = { this . state . disabled }
167170 />
171+
172+ < ListFooter
173+ title = "Powered by the St. Olaf Calendar"
174+ href = { STO_CALENDAR_URL }
175+ />
168176 </ ScrollView >
169177 )
170178 }
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import type {CleanedEventType} from './types'
66import type { TopLevelViewPropsType } from '../types'
77import { ShareButton } from '../components/nav-buttons'
88import openUrl from '../components/open-url'
9+ import { ListFooter } from '../components/list'
910import { getTimes , getLinksFromEvent } from './clean-event'
1011import { ButtonCell } from '../components/cells/button'
1112import { addToCalendar } from './calendar-util'
@@ -17,6 +18,8 @@ const styles = StyleSheet.create({
1718 } ,
1819} )
1920
21+ const STO_CALENDAR_URL = 'https://www.stolaf.edu/calendar'
22+
2023const shareItem = ( event : CleanedEventType ) => {
2124 const summary = event . summary ? event . summary : ''
2225 const times = getTimes ( event ) ? getTimes ( event ) : ''
@@ -134,6 +137,11 @@ export class EventDetail extends React.PureComponent {
134137 message = { this . state . message }
135138 disabled = { this . state . disabled }
136139 />
140+
141+ < ListFooter
142+ title = "Powered by the St. Olaf Calendar"
143+ href = { STO_CALENDAR_URL }
144+ />
137145 </ TableView >
138146 </ ScrollView >
139147 )
You can’t perform that action at this time.
0 commit comments