Skip to content

Commit 63408ba

Browse files
committed
update incorrect uses of ListRow
1 parent c3b1e14 commit 63408ba

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

source/views/building-hours/row.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function BuildingRow({info, name, now, onPress}: PropsType) {
6666
const textaccent = foregroundColors[openStatus] || 'rgb(130, 82, 45)'
6767

6868
return (
69-
<ListRow onPress={onPress} arrowPosition="center" direction="column">
69+
<ListRow onPress={onPress} arrowPosition="center">
7070
<Column>
7171
<Row style={styles.title}>
7272
<Title lines={1} style={styles.titleText}>

source/views/transportation/bus/bus-line.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @flow
22
import React from 'react'
3-
import {View, StyleSheet, Platform} from 'react-native'
3+
import {View, StyleSheet, Platform, Text} from 'react-native'
44
import type {BusLineType, FancyBusTimeListType} from './types'
55
import {getScheduleForNow, getSetOfStopsForNow} from './lib'
66
import get from 'lodash/get'
@@ -11,8 +11,7 @@ import moment from 'moment-timezone'
1111
import * as c from '../../components/colors'
1212
import {Separator} from '../../components/separator'
1313
import {BusStopRow} from './bus-stop-row'
14-
import {ListRow} from '../../components/list'
15-
import {ListSectionHeader} from '../../components/list'
14+
import {ListRow, ListSectionHeader, Title} from '../../components/list'
1615

1716
const TIME_FORMAT = 'h:mma'
1817
const TIMEZONE = 'America/Winnipeg'
@@ -61,7 +60,9 @@ export function BusLine({line, now}: {line: BusLineType, now: moment}) {
6160
return (
6261
<View>
6362
<ListSectionHeader title={line.line} titleStyle={androidColor} />
64-
<ListRow title="This line is not running today." />
63+
<ListRow>
64+
<Title><Text>This line is not running today.</Text></Title>
65+
</ListRow>
6566
</View>
6667
)
6768
}

0 commit comments

Comments
 (0)