Skip to content

Commit 7b841c3

Browse files
committed
chore: rename
1 parent ed1b01f commit 7b841c3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/component/RouteNumberContainer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import PropTypes from 'prop-types';
22
import React from 'react';
33
import { routeShape, configShape } from '../util/shapes';
4-
import { getLegText } from '../util/legUtils';
4+
import { getRouteText } from '../util/legUtils';
55
import RouteNumber from './RouteNumber';
66

77
const RouteNumberContainer = (
@@ -24,7 +24,7 @@ const RouteNumberContainer = (
2424
isCallAgency={isCallAgency}
2525
color={route.color ? `#${route.color}` : null}
2626
mode={mode !== undefined ? mode : route.mode}
27-
text={getLegText(route, config, interliningWithRoute)}
27+
text={getRouteText(route, config, interliningWithRoute)}
2828
shortenLongText
2929
occupancyStatus={occupancyStatus}
3030
{...props}

app/component/map/ItineraryLine.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { isBrowser } from '../../util/browser';
77
import { getMiddleOf } from '../../util/geo-utils';
88
import {
99
getInterliningLegs,
10-
getLegText,
10+
getRouteText,
1111
isCallAgencyLeg,
1212
} from '../../util/legUtils';
1313
import { getRouteMode } from '../../util/modeUtils';
@@ -175,7 +175,7 @@ class ItineraryLine extends React.Component {
175175
/>,
176176
);
177177
} else if (leg.transitLeg) {
178-
const name = getLegText(
178+
const name = getRouteText(
179179
leg.route,
180180
this.context.config,
181181
interliningWithRoute,

app/util/legUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function continueWithBicycle(leg1, leg2) {
144144
return isBicycle1 && isBicycle2 && !leg1.to.vehicleParking;
145145
}
146146

147-
export function getLegText(route, config, interliningWithRoute) {
147+
export function getRouteText(route, config, interliningWithRoute) {
148148
const showAgency = get(config, 'agency.show', false);
149149
if (interliningWithRoute && interliningWithRoute !== route.shortName) {
150150
return `${route.shortName} / ${interliningWithRoute}`;

0 commit comments

Comments
 (0)