Skip to content

Commit

Permalink
fix: apply ODD_IMAGING to imagerie tab into cohort or perimeter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehdi-BOUYAHIA committed Dec 20, 2023
2 parents 777cb85 + 36d579f commit 6d284a5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/views/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const Dashboard: React.FC<{
{ label: 'Aperçu cohorte', value: 'preview', to: `/cohort/${cohortId}/preview`, disabled: false },
{ label: 'Données patient', value: 'patients', to: `/cohort/${cohortId}/patients`, disabled: false },
{ label: 'Documents cliniques', value: 'documents', to: `/cohort/${cohortId}/documents`, disabled: false },
{ label: 'Imagerie', value: 'imaging', to: `/cohort/${cohortId}/imaging`, disabled: false }
...(ODD_IMAGING
? [{ label: 'Imagerie', value: 'imaging', to: `/cohort/${cohortId}/imaging`, disabled: false }]
: [])
])
break
case 'new_cohort':
Expand All @@ -72,7 +74,7 @@ const Dashboard: React.FC<{
{ label: 'Aperçu cohorte', value: 'preview', to: `/cohort/new/preview`, disabled: true },
{ label: 'Données patient', value: 'patients', to: `/cohort/new/patients`, disabled: true },
{ label: 'Documents cliniques', value: 'documents', to: `/cohort/new/documents`, disabled: true },
{ label: 'Imagerie', value: 'imaging', to: `/cohort/new/imaging`, disabled: true }
...(ODD_IMAGING ? [{ label: 'Imagerie', value: 'imaging', to: `/cohort/new/imaging`, disabled: true }] : [])
])
break
case 'perimeters':
Expand All @@ -91,7 +93,9 @@ const Dashboard: React.FC<{
to: `/perimeters/documents${location.search}`,
disabled: false
},
{ label: 'Imagerie', value: 'imaging', to: `/perimeters/imaging${location.search}`, disabled: false }
...(ODD_IMAGING
? [{ label: 'Imagerie', value: 'imaging', to: `/perimeters/imaging${location.search}`, disabled: false }]
: [])
])
break
default:
Expand Down

0 comments on commit 6d284a5

Please sign in to comment.