Skip to content

Commit 0bbfca7

Browse files
committed
add footer to Calendar Detail views
1 parent 321cb92 commit 0bbfca7

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

source/views/calendar/event-detail.android.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import * as c from '../components/colors'
1111
import {ButtonCell} from '../components/cells/button'
1212
import {addToCalendar} from './calendar-util'
1313
import delay from 'delay'
14+
import {ListFooter} from '../components/list'
15+
16+
const STO_CALENDAR_URL = 'https://www.stolaf.edu/calendar'
1417

1518
const 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
}

source/views/calendar/event-detail.ios.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import type {CleanedEventType} from './types'
66
import type {TopLevelViewPropsType} from '../types'
77
import {ShareButton} from '../components/nav-buttons'
88
import openUrl from '../components/open-url'
9+
import {ListFooter} from '../components/list'
910
import {getTimes, getLinksFromEvent} from './clean-event'
1011
import {ButtonCell} from '../components/cells/button'
1112
import {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+
2023
const 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
)

0 commit comments

Comments
 (0)