File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
15
15
export default function EventTypeIcon ( { displayCategory } ) {
16
16
switch ( displayCategory ) {
17
- case "closure " :
17
+ case "closures " :
18
18
return < FontAwesomeIcon icon = { faMinusCircle } alt = "closure" /> ;
19
19
case "majorEvents" :
20
20
return < FontAwesomeIcon icon = { faExclamationTriangle } alt = "major delays" /> ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export function getEvents(routePoints) {
9
9
datum . roadIsClosed = ! ! datum . description . match ( / R o a d c l o s e d ( \. | ) / ) ;
10
10
if ( datum . roadIsClosed ) {
11
11
datum . severity = 'CLOSURE' ;
12
- datum . display_category = 'closure ' ;
12
+ datum . display_category = 'closures ' ;
13
13
}
14
14
} )
15
15
return data ;
Original file line number Diff line number Diff line change @@ -37,15 +37,15 @@ export function loadEventsLayers(
37
37
const isLineSegment = feature . getGeometry ( ) . getType ( ) === 'LineString' ;
38
38
39
39
const vsMap = {
40
- closure : closureVS ,
40
+ closures : closureVS ,
41
41
majorEvents : majorEventsVS ,
42
42
minorEvents : minorEventsVS ,
43
43
futureEvents : futureEventsVS ,
44
44
roadConditions : roadConditionsVS
45
45
}
46
46
47
47
const lineVsMap = {
48
- closure : closureLinesVS ,
48
+ closures : closureLinesVS ,
49
49
majorEvents : majorEventsLinesVS ,
50
50
minorEvents : minorEventsLinesVS ,
51
51
futureEvents : futureEventsLinesVS ,
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export default function EventsPage() {
77
77
{
78
78
id : 'checkbox-filter-closure' ,
79
79
label : 'Closures' ,
80
- value : 'closure ' ,
80
+ value : 'closures ' ,
81
81
} ,
82
82
{
83
83
id : 'checkbox-filter-incident' ,
@@ -104,7 +104,7 @@ export default function EventsPage() {
104
104
const [ sortingColumns , setSortingColumns ] = useState ( [ ] ) ;
105
105
106
106
const [ eventCategoryFilter , setEventCategoryFilter ] = useState ( {
107
- 'closure ' : mapContext . visible_layers . closure ,
107
+ 'closures ' : mapContext . visible_layers . closures ,
108
108
'majorEvents' : mapContext . visible_layers . majorEvents ,
109
109
'minorEvents' : mapContext . visible_layers . minorEvents ,
110
110
'futureEvents' : mapContext . visible_layers . futureEvents ,
You can’t perform that action at this time.
0 commit comments