Skip to content

Commit 7761083

Browse files
committed
fix up remaining props issues
1 parent 982d837 commit 7761083

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

source/views/building-hours/detail/schedule-row.ios.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export class ScheduleRow extends React.PureComponent {
2424
<Cell
2525
cellStyle="RightDetail"
2626
title={summarizeDays(set.days)}
27-
titleTextStyle={isActive ? styles.bold : null}
27+
titleTextStyle={isActive ? styles.bold : undefined}
2828
detail={formatBuildingTimes(set, now)}
29-
detailTextStyle={isActive ? styles.bold : null}
29+
detailTextStyle={isActive ? styles.bold : undefined}
3030
/>
3131
)
3232
}

source/views/components/filter/section-list.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ export function ListSection({filter, onChange}: PropsType) {
7070
onPress={() => buttonPushed(val)}
7171
disableImageResize={true}
7272
image={
73-
spec.showImages && <Image style={styles.icon} source={val.image} />
73+
spec.showImages ? <Image style={styles.icon} source={val.image} /> : undefined
7474
}
75-
accessory={includes(selected, val) && 'Checkmark'}
75+
accessory={includes(selected, val) ? 'Checkmark' : undefined}
7676
cellStyle="RightDetail"
7777
cellContentView={
7878
<Column style={styles.content}>
@@ -89,7 +89,7 @@ export function ListSection({filter, onChange}: PropsType) {
8989
key="__show_all"
9090
title="Show All"
9191
onPress={showAll}
92-
accessory={selected.length === options.length ? 'Checkmark' : null}
92+
accessory={selected.length === options.length ? 'Checkmark' : undefined}
9393
/>
9494
)
9595
buttons = [showAllButton].concat(buttons)

0 commit comments

Comments
 (0)