Skip to content

Commit

Permalink
feat(admin):improve presensation of feasibility filters
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreavizou committed Dec 12, 2024
1 parent d5941a2 commit c4e6389
Showing 1 changed file with 31 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,22 +194,22 @@ const CandidaciesLayout = ({ children }: { children: ReactNode }) => {
path: "/candidacies/feasibilities",
category: "ADMISSIBLE",
}),
menuItem({
text: `Dossiers non recevables (${feasibilityCountByCategory?.REJECTED || 0})`,
path: "/candidacies/feasibilities",
category: "REJECTED",
}),
// menuItem({
// text: `Dossiers non recevables (${feasibilityCountByCategory?.REJECTED || 0})`,
// path: "/candidacies/feasibilities",
// category: "REJECTED",
// }),

menuItem({
text: `Dossiers supprimés (${feasibilityCountByCategory?.ARCHIVED || 0})`,
path: "/candidacies/feasibilities",
category: "ARCHIVED",
}),
menuItem({
text: `Dossiers abandonnés (${feasibilityCountByCategory?.DROPPED_OUT || 0})`,
path: "/candidacies/feasibilities",
category: "DROPPED_OUT",
}),
// menuItem({
// text: `Dossiers supprimés (${feasibilityCountByCategory?.ARCHIVED || 0})`,
// path: "/candidacies/feasibilities",
// category: "ARCHIVED",
// }),
// menuItem({
// text: `Dossiers abandonnés (${feasibilityCountByCategory?.DROPPED_OUT || 0})`,
// path: "/candidacies/feasibilities",
// category: "DROPPED_OUT",
// }),
];

const dossierDeValidationItems = [
Expand Down Expand Up @@ -269,6 +269,22 @@ const CandidaciesLayout = ({ children }: { children: ReactNode }) => {
text: "Jury",
expandedByDefault: currentPathname.startsWith("/candidacies/juries"),
},
menuItem({
text: `Dossiers non recevables (${feasibilityCountByCategory?.REJECTED || 0})`,
path: "/candidacies/feasibilities",
category: "REJECTED",
}),

menuItem({
text: `Dossiers supprimés (${feasibilityCountByCategory?.ARCHIVED || 0})`,
path: "/candidacies/feasibilities",
category: "ARCHIVED",
}),
menuItem({
text: `Dossiers abandonnés (${feasibilityCountByCategory?.DROPPED_OUT || 0})`,
path: "/candidacies/feasibilities",
category: "DROPPED_OUT",
}),
];

return (
Expand Down

0 comments on commit c4e6389

Please sign in to comment.