@@ -15,7 +15,6 @@ import ZoneIcon from '../../ZoneIcon';
15
15
import { legShape , configShape } from '../../../util/shapes' ;
16
16
import { getDestinationProperties , LEGTYPE , withRealTime } from './NaviUtils' ;
17
17
import { getRouteMode } from '../../../util/modeUtils' ;
18
- import RouteNumber from '../../RouteNumber' ;
19
18
import RouteNumberContainer from '../../RouteNumberContainer' ;
20
19
import NaviBoardingInfo from './NaviBoardingInfo' ;
21
20
@@ -159,54 +158,7 @@ const NaviCardExtension = ({ legType, leg, nextLeg, time }, { config }) => {
159
158
</ div >
160
159
) ;
161
160
}
162
- if ( legType === LEGTYPE . MOVE && nextLeg ) {
163
- const { headsign, route, start } = nextLeg ;
164
- const hs = headsign || nextLeg . trip ?. tripHeadsign ;
165
- const remainingDuration = Math . max (
166
- Math . ceil ( ( legTime ( start ) - time ) / 60000 ) ,
167
- 0 ,
168
- ) ; // ms to minutes, >= 0
169
- const rt = nextLeg . realtimeState === 'UPDATED' ;
170
- const values = {
171
- duration : withRealTime ( rt , remainingDuration ) ,
172
- legTime : withRealTime ( rt , legTimeStr ( start ) ) ,
173
- } ;
174
- const routeMode = getRouteMode ( route , config ) ;
175
- const iconColor =
176
- config . colors . iconColors [ `mode-${ routeMode } ` ] ||
177
- route . color ||
178
- 'currentColor' ;
179
- return (
180
- < div className = "extension" >
181
- { stopInformation ( ) }
182
- < div className = "extension-divider" />
183
- < div className = "wait-leg" >
184
- < div className = "route-info" >
185
- < div className = "expand" >
186
- < Icon img = "navi-expand" className = "icon-expand-small" />
187
- < div className = "wait-duration" >
188
- < FormattedMessage
189
- id = "navileg-arrive-at"
190
- defaultMessage = "{duration} min päästä klo {legTime}"
191
- values = { values }
192
- />
193
- </ div >
194
- </ div >
195
- < div className = "routenumber" >
196
- < RouteNumber
197
- mode = { routeMode }
198
- text = { route ?. shortName }
199
- withBar
200
- isTransitLeg
201
- color = { iconColor }
202
- />
203
- < div className = "headsign" > { hs } </ div >
204
- </ div >
205
- </ div >
206
- </ div >
207
- </ div >
208
- ) ;
209
- }
161
+
210
162
return (
211
163
< div className = "extension" >
212
164
< div className = "extension-divider" />
0 commit comments