Skip to content

Commit

Permalink
fix menu (#254)
Browse files Browse the repository at this point in the history
* fix menu

* url button formulaire
  • Loading branch information
Ornella452 authored Nov 27, 2024
1 parent 524ef10 commit eabeb0c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/components/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -108,17 +108,17 @@ function Menu() {
<ul className="fr-menu__list">
<li>
<Link
to="/nouveau-formulaire-conseiller"
to="/aide-candidat"
className="fr-nav__link"
{...(location.pathname.startsWith('/nouveau-formulaire-conseiller') ? { 'aria-current': 'page' } : {})}>
{...(location.pathname.startsWith('/aide-candidat') ? { 'aria-current': 'page' } : {})}>
Devenir conseiller num&eacute;rique
</Link>
</li>
<li>
<Link
to="/nouveau-formulaire-structure"
to="/aide-structure"
className="fr-nav__link"
{...(location.pathname.startsWith('/nouveau-formulaire-structure') ? { 'aria-current': 'page' } : {})}>
{...(location.pathname.startsWith('/aide-structure') ? { 'aria-current': 'page' } : {})}>
Obtenir un poste de conseiller num&eacute;rique
</Link>
</li>
Expand Down
2 changes: 1 addition & 1 deletion src/views/aide-candidat/Actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className="fr-container fr-col-lg-5 fr-col-xs-12 fr-mb-10w" style={{ textAlign: 'center' }}>
Expand Down
2 changes: 1 addition & 1 deletion src/views/aide-structure/Questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className="fr-container fr-mb-5w">
Expand Down

0 comments on commit eabeb0c

Please sign in to comment.