File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22import React , { useMemo } from 'react' ;
33import PropTypes from 'prop-types' ;
44import cx from 'classnames' ;
5+ import { useRouter } from 'found' ;
56import { entityShape } from '../../util/shapes' ;
6- import { useRoute } from '../../util/RouteContext' ;
77import { useConfigContext } from '../../configurations/ConfigContext' ;
88import { AlertEntityType } from '../../constants' ;
99import { groupEntitiesByMode } from './utils' ;
@@ -15,7 +15,7 @@ const STOP_SIGN_ICON_SCALE = 0.5;
1515const NORMAL_ICON_SCALE = 1 ;
1616
1717export default function RouteBadges ( { entities : rawEntities } ) {
18- const { match } = useRoute ( ) ;
18+ const { match } = useRouter ( ) ;
1919 const config = useConfigContext ( ) ;
2020 const { selectedFilters } = useFilterContext ( ) ;
2121
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ import {
3030
3131import getStopRoutes from './stopRoutes' ;
3232import routeRoutes from './routeRoutes' ;
33- import { withRouteContext } from './util/RouteContext' ;
3433
3534export const historyMiddlewares = [ queryMiddleware ] ;
3635
@@ -355,7 +354,6 @@ export default config => {
355354 /* webpackChunkName: "trafficnow" */ './component/trafficnow/TrafficNow'
356355 ) . then ( getDefault )
357356 }
358- render = { withRouteContext ( ) }
359357 />
360358 ) }
361359 < Route
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments