Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix menu #254

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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