Skip to content

Commit bfcdfd5

Browse files
committed
remove links from ios calendar detail
1 parent f3d4a54 commit bfcdfd5

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

modules/event-list/event-detail.ios.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import * as React from 'react'
33
import {ScrollView} from 'react-native'
44
import {
5-
Cell,
65
Section,
76
TableView,
87
ButtonCell,
@@ -12,7 +11,6 @@ import type {EventType} from '@frogpond/event-type'
1211
import type {PoweredBy} from './types'
1312
import type {NavigationScreenProp} from 'react-navigation'
1413
import {ShareButton} from '@frogpond/navigation-buttons'
15-
import {openUrl} from '@frogpond/open-url'
1614
import {ListFooter} from '@frogpond/lists'
1715
import {shareEvent, getTimes} from './calendar-util'
1816
import {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-
4326
type 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

Comments
 (0)