From eabeb0c3947e5a5e0f6cd2fe51ec7c2e135b616a Mon Sep 17 00:00:00 2001
From: Ornella <68587983+Ornella452@users.noreply.github.com>
Date: Wed, 27 Nov 2024 14:16:32 +0100
Subject: [PATCH] fix menu (#254)
* fix menu
* url button formulaire
---
src/components/Menu.js | 12 ++++++------
src/views/aide-candidat/Actions.js | 2 +-
src/views/aide-structure/Questions.js | 2 +-
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/components/Menu.js b/src/components/Menu.js
index f316ba46..72651cf4 100644
--- a/src/components/Menu.js
+++ b/src/components/Menu.js
@@ -98,8 +98,8 @@ function Menu() {
aria-controls="menu-cnfs"
onClick={onClickMenu}
{
- ...(location.pathname.startsWith('/nouveau-formulaire-conseiller') ||
- location.pathname.startsWith('/nouveau-formulaire-structure') ||
+ ...(location.pathname.startsWith('/aide-candidat') ||
+ location.pathname.startsWith('/aide-structure') ||
location.pathname.startsWith('/nouveau-formulaire-coordinateur') ? { 'aria-current': true } : {})
}>
Candidature
@@ -108,17 +108,17 @@ function Menu() {
-
+ {...(location.pathname.startsWith('/aide-candidat') ? { 'aria-current': 'page' } : {})}>
Devenir conseiller numérique
-
+ {...(location.pathname.startsWith('/aide-structure') ? { 'aria-current': 'page' } : {})}>
Obtenir un poste de conseiller numérique
diff --git a/src/views/aide-candidat/Actions.js b/src/views/aide-candidat/Actions.js
index d262ab4d..87461bb1 100644
--- a/src/views/aide-candidat/Actions.js
+++ b/src/views/aide-candidat/Actions.js
@@ -2,7 +2,7 @@ import React from 'react';
function Actions() {
- const urlFormConseiller = import.meta.env.VITE_APP_FORMS_URL + '/conseiller/new';
+ const urlFormConseiller = '/nouveau-formulaire-conseiller';
return (
diff --git a/src/views/aide-structure/Questions.js b/src/views/aide-structure/Questions.js
index def0b83b..6400ccda 100644
--- a/src/views/aide-structure/Questions.js
+++ b/src/views/aide-structure/Questions.js
@@ -2,7 +2,7 @@ import React from 'react';
function Questions() {
- const urlFormStructure = import.meta.env.VITE_APP_FORMS_URL + '/structure/new';
+ const urlFormStructure = '/nouveau-formulaire-structure';
return (