แก้ไข path manual

This commit is contained in:
AnandaTon 2024-07-03 11:09:17 +07:00
parent d4433afd0c
commit 3d59d4ed2b

View file

@ -38,16 +38,27 @@ const generatePopupPath = (routeName: any) => {
if (routeName.includes("leave")) {
return `${path}/manual/chapter-4-user-leave`;
}
// if (routeName.includes("compete")) {
// return `${path}/manual/chapter-10-admin-recruit`;
// }
// if (routeName.includes("registryNew")) {
// return `${path}/manual/chapter-7-admin-registry`;
// }
// if (routeName.includes("registry")) {
// return `${path}/manual/chapter-7-admin-registry`;
// }
else {
if (routeName.includes("evaluate")) {
return `${path}/manual/chapter-3-user-evaluate`;
}
if (routeName.includes("portfolio")) {
return `${path}/manual/chapter-5-user-portfolio`;
}
if (routeName.includes("transfer")) {
return `${path}/manual/chapter-6-user-transfer`;
}
if (routeName.includes("appealComplain")) {
return `${path}/manual/chapter-7-user-appeal-complain`;
}
if (routeName.includes("KPI")) {
return `${path}/manual/chapter-9-user-KPI-evaluator`;
}
if (routeName.includes("scholarship")) {
return `${path}/manual/chapter-10-user-scholarship`;
}
if (routeName.includes("retire")) {
return `${path}/manual/chapter-11-user-retire`;
} else {
return manualConfig[routeName as keyof typeof manualConfig];
}
};