Closed axelclark closed 6 years ago
const displayArrival = (mins) => {
switch(mins)
{
case 'BRD':
return <Text>The train is boarding!</Text>
case 'ARR':
return <Text>The train is arriving</Text>
default:
return <Text>Arrival in {mins} minutes</Text>
}
}
Occasionally, the mins is an empty string. We should consider handling that case as well.
Currently says "Train is arriving in {min} minutes". This results in occasionally saying "in BRD minutes" or "in ARR minutes". The sentence should say:
"Train is arriving" and "Train is boarding!"