Updated mock-api and added relevant changes to deltagare-card component

This commit is contained in:
Erik Tiekstra
2021-08-04 08:30:09 +02:00
parent 3709987ee1
commit 5d1e357e83
6 changed files with 67 additions and 50 deletions

View File

@@ -44,7 +44,7 @@ router.render = (req, res) => {
res.jsonp(res.locals.data);
} else {
let data = res.locals.data;
const deltagareRegex = /(?:\/customerinfo\/)(contact|driverlicense|education\/highest|education|translator|work\/disability|work\/languages)/g;
const deltagareRegex = /(?:\/customerinfo\/)(contact|driverlicense|education\/highest|education|translator|work\/disability|work\/languages|work\/experience)/g;
const isDeltagarePath = deltagareRegex.exec(pathname);
if (isDeltagarePath) {
@@ -90,6 +90,8 @@ function getDeltagareSubPath(path) {
return 'disabilities';
case 'work/languages':
return 'workLanguages';
case 'work/experience':
return 'workExperiences';
default:
return path;
}