Skip to content

Commit 95219d2

Browse files
committed
Remove unnecessary configShape from LegInfo contextTypes.
1 parent 1db3f75 commit 95219d2

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

app/component/itinerary/LegInfo.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Link from 'found/Link';
44
import PropTypes from 'prop-types';
55
import { useIntl } from 'react-intl';
66
import Modal from '@hsl-fi/modal';
7-
import { legShape, configShape } from '../../util/shapes';
7+
import { legShape } from '../../util/shapes';
88
import { legTimeStr, isLocalCallAgency } from '../../util/legUtils';
99
import { getTripOrRouteMode } from '../../util/modeUtils';
1010
import RouteNumber from '../RouteNumber';
@@ -211,7 +211,3 @@ LegInfo.defaultProps = {
211211
isTransitLeg: false,
212212
mobile: undefined,
213213
};
214-
215-
LegInfo.contextTypes = {
216-
config: configShape.isRequired,
217-
};

0 commit comments

Comments
 (0)