File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 22import React from 'react'
33import { Alert , StyleSheet } from 'react-native'
44import { Markdown } from '../components/markdown'
5+ import { ListFooter } from '../components/list'
56import glamorous from 'glamorous-native'
67import { phonecall } from 'react-native-communications'
78import { tracker } from '../../analytics'
89import { Button } from '../components/button'
910import openUrl from '../components/open-url'
1011import type { ContactType } from './types'
1112
13+ const AAO_URL = 'https://github.com/StoDevX/AAO-React-Native/issues/new'
14+
1215const Title = glamorous . text ( {
1316 fontSize : 36 ,
1417 textAlign : 'center' ,
@@ -68,11 +71,18 @@ export class ContactsDetailView extends React.PureComponent {
6871 return (
6972 < Container >
7073 < Title selectable = { true } > { contact . title } </ Title >
74+
7175 < Markdown
7276 styles = { { Paragraph : styles . paragraph } }
7377 source = { contact . text }
7478 />
79+
7580 < Button onPress = { this . onPress } title = { contact . buttonText } />
81+
82+ < ListFooter
83+ title = "Collected by the humans of All About Olaf"
84+ href = { AAO_URL }
85+ />
7686 </ Container >
7787 )
7888 }
Original file line number Diff line number Diff line change 77import React from 'react'
88import { SectionList , StyleSheet } from 'react-native'
99import { ListSeparator , ListSectionHeader } from '../components/list'
10- import { ListEmpty , ListFooter } from '../components/list'
10+ import { ListEmpty } from '../components/list'
1111import { ContactRow } from './contact-row'
1212import { data } from './data'
1313import groupBy from 'lodash/groupBy'
1414import toPairs from 'lodash/toPairs'
1515import * as c from '../components/colors'
1616import type { ContactType } from './types'
1717
18- const AAO_URL = 'https://github.com/StoDevX/AAO-React-Native/issues/new'
19-
2018const groupContacts = ( contacts : ContactType [ ] ) => {
2119 const grouped = groupBy ( contacts , c => c . category )
2220 return toPairs ( grouped ) . map ( ( [ key , value ] ) => ( { title : key , data : value } ) )
@@ -56,12 +54,6 @@ export default class ContactsListView extends React.PureComponent {
5654 < SectionList
5755 ItemSeparatorComponent = { ListSeparator }
5856 ListEmptyComponent = { < ListEmpty mode = "bug" /> }
59- ListFooterComponent = {
60- < ListFooter
61- title = "Collected by the humans of All About Olaf"
62- href = { AAO_URL }
63- />
64- }
6557 style = { styles . listContainer }
6658 data = { groupedData }
6759 sections = { groupedData }
You can’t perform that action at this time.
0 commit comments