fixed inconsistend naming

This commit is contained in:
Matthias Hannig 2018-09-10 17:07:35 +02:00
parent 4a4e1ac981
commit 21c31b58d7
2 changed files with 6 additions and 2 deletions

View File

@ -254,7 +254,7 @@ $labelOffsetEnd: -30px;
&.filtered {
color: orange;
}
&.notexported {
&.not-exported {
color: red;
}
}

View File

@ -27,7 +27,11 @@ const RoutesHeader = (props) => {
[ROUTES_FILTERED]: "filtered",
[ROUTES_NOT_EXPORTED]: "not exported"
}[type];
const cls = `card-header card-header-routes ${type.toLowerCase()}`;
let stype = type;
if (stype == ROUTES_NOT_EXPORTED) {
stype = 'not-exported'; // *sigh*
}
const cls = `card-header card-header-routes ${stype}`;
return (<p className={cls}>Routes {rtype}</p>);
};