Updated mock-api and added relevant changes to deltagare-card component
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user