diff --git a/src/components/DisplayDetailClass_new_v2.js b/src/components/DisplayDetailClass_new_v2.js
index 3c217f7..a1b486a 100644
--- a/src/components/DisplayDetailClass_new_v2.js
+++ b/src/components/DisplayDetailClass_new_v2.js
@@ -29,6 +29,7 @@ import img_met_rh from "../mysy_img/met_rh.jpg";
import img_met_bureautic from "../mysy_img/met_burautic.jpg";
import img_met_vente from "../mysy_img/met_vente.jpg";
+import img_met_sport from "../mysy_img/met_sport.png";
/*
/!\ important: les images du slides doivent avoir une dimension de : 250 X 450
*/
@@ -101,10 +102,11 @@ const DisplayDetailClass_new_v2 = (props) => {
var myurl = process.env.REACT_APP_API_URL + "myclass/api/MySyckeckEvaluationToken/";
axios.post(myurl, form).then(res => {
+ //console.log(" In CheckEvaluationToken res.data.status = " + res.data.status);
+ //console.log(" In CheckEvaluationToken res.data.message r_class = " + res.data.message);
+
if (String(res.data.status) !== "false") {
- //console.log(" In tokenEval_trainingsession res.data.status = " + res.data.status);
- //console.log(" In tokenEval_trainingsession res.data.message r_class = " + res.data.message);
settokenEval_api("true");
settokenEval_result(res.data.message);
}
@@ -126,9 +128,8 @@ const DisplayDetailClass_new_v2 = (props) => {
async function funclocaltoken() {
-
- if (props.action && String(props.action).toLocaleLowerCase() !== "inscription" &&
- String(props.action).toLocaleLowerCase() !== "information") {
+ if (action && String(action).toLocaleLowerCase() !== "inscription" &&
+ String(action).toLocaleLowerCase() !== "information") {
CheckEvaluationToken();
@@ -424,7 +425,7 @@ const DisplayDetailClass_new_v2 = (props) => {
var main_h_px;
- console.log("GetCurrentClass_result.length = ", GetCurrentClass_result);
+ console.log("GetCurrentClass_result.length = ", GetCurrentClass_result);
if (window.screen.width < 601) {
@@ -1496,6 +1497,10 @@ const DisplayDetailClass_new_v2 = (props) => {
{JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("vente") &&
}
+ {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("sport") &&
+
}
+
+
{JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("dev_perso") &&
}
@@ -1933,6 +1938,10 @@ const DisplayDetailClass_new_v2 = (props) => {
DetailTraining.metier && String(DetailTraining.metier).toLocaleLowerCase() === String("vente") &&
}
+ {(!DetailTraining.img_url || String(DetailTraining.img_url).length <= 0) &&
+ DetailTraining.metier && String(DetailTraining.metier).toLocaleLowerCase() === String("sport") &&
+
}
+
{(!DetailTraining.img_url || String(DetailTraining.img_url).length <= 0) &&
DetailTraining.metier && String(DetailTraining.metier).toLocaleLowerCase() === String("dev_perso") &&
}
@@ -2215,6 +2224,10 @@ const DisplayDetailClass_new_v2 = (props) => {
{JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("vente") &&
}
+ {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("sport") &&
+
}
+
+
{JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("dev_perso") &&
}
diff --git a/src/components/Recherche_new_v2.js b/src/components/Recherche_new_v2.js
index ae8b5a4..6d16188 100644
--- a/src/components/Recherche_new_v2.js
+++ b/src/components/Recherche_new_v2.js
@@ -2659,6 +2659,12 @@ const Recherche_new_v2 = () => {