22import * as React from 'react'
33import { ScrollView } from 'react-native'
44import {
5- Cell ,
65 Section ,
76 TableView ,
87 ButtonCell ,
@@ -12,7 +11,6 @@ import type {EventType} from '@frogpond/event-type'
1211import type { PoweredBy } from './types'
1312import type { NavigationScreenProp } from 'react-navigation'
1413import { ShareButton } from '@frogpond/navigation-buttons'
15- import { openUrl } from '@frogpond/open-url'
1614import { ListFooter } from '@frogpond/lists'
1715import { shareEvent , getTimes } from './calendar-util'
1816import { AddToCalendar } from '@frogpond/add-to-device-calendar'
@@ -25,21 +23,6 @@ function MaybeSection({header, content}: {header: string, content: string}) {
2523 ) : null
2624}
2725
28- function Links ( { header, event} : { header : string , event : EventType } ) {
29- return event . links . length ? (
30- < Section header = { header } >
31- { event . links . map ( url => (
32- < Cell
33- key = { url }
34- accessory = "DisclosureIndicator"
35- onPress = { ( ) => openUrl ( url ) }
36- title = { url }
37- />
38- ) ) }
39- </ Section >
40- ) : null
41- }
42-
4326type Navigation = NavigationScreenProp < {
4427 params : { event : EventType , poweredBy : ?PoweredBy } ,
4528} >
@@ -68,7 +51,6 @@ export class EventDetail extends React.Component<Props> {
6851 < MaybeSection content = { getTimes ( event ) } header = "TIME" />
6952 < MaybeSection content = { event . location } header = "LOCATION" />
7053 < MaybeSection content = { event . description } header = "DESCRIPTION" />
71- < Links event = { event } header = "LINKS" />
7254
7355 < AddToCalendar
7456 event = { event }
0 commit comments