Skip to content

Commit

Permalink
add "Campus Circulator" as subtitle to routes with only one direction
Browse files Browse the repository at this point in the history
  • Loading branch information
bwees committed Feb 5, 2024
1 parent 298d423 commit 811b8fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/sheets/RoutesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const RoutesList: React.FC<SheetProps> = ({ sheetRef }) => {
<FontAwesome name="star" size={16} color="#ffcc01" style={{marginLeft: 4}} />
}
</View>
{ route.directionList.length > 1 &&
{ route.directionList.length > 1 ?
<View style={{ display: 'flex', flexDirection: 'row', alignItems: 'center' }}>
{route.directionList.map((elm: IDirectionList, index: number) => (
<React.Fragment key={index}>
Expand All @@ -161,6 +161,8 @@ const RoutesList: React.FC<SheetProps> = ({ sheetRef }) => {
</React.Fragment>
))}
</View>
:
<Text>Campus Circulator</Text>
}
</View>
</TouchableOpacity>
Expand Down

0 comments on commit 811b8fa

Please sign in to comment.