Skip to content

Commit

Permalink
feat(admin-react): remove subscription v1 menu items and improve orga…
Browse files Browse the repository at this point in the history
…nism wording
  • Loading branch information
cedricss committed Jul 1, 2024
1 parent 056ff79 commit 4caf97c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const ValidatedSubscriptionRequestsPage = () => {
subscriptionRequestPage &&
getLegalVerificationPendingSubscriptionRequestsStatus === "success" && (
<SearchList
title="Maisons-mères à vérifier"
title="Comptes administrateur à vérifier"
searchFilter={searchFilter}
searchResultsPage={subscriptionRequestPage}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,41 +81,32 @@ const SubscriptionsLayout = ({ children }: { children: ReactNode }) => {
if (showLegalMenuItems) {
return [
menuItem(
"Anciennes inscriptions à vérifier",
hrefSideMenu("pending"),
currentPathname,
),
menuItem(
"Anciennes inscriptions refusées",
hrefSideMenu("rejected"),
"Inscriptions à vérifier",
hrefSideMenu("pending-v2"),
currentPathname,
subscriptionCountByStatus?.PENDING_SUBSCRIPTION,
),
menuItem(
"Inscriptions refusées",
hrefSideMenu("rejected-v2"),
currentPathname,
subscriptionCountByStatus?.REJECTED_SUBSCRIPTION,
),

menuItem(
"Inscriptions à vérifier",
hrefSideMenu("pending-v2"),
currentPathname,
subscriptionCountByStatus?.PENDING_SUBSCRIPTION,
),
menuItem(
"Maisons-mères à vérifier",
"Comptes administrateur à vérifier",
hrefSideMenu("check-legal-information"),
currentPathname,
subscriptionCountByStatus?.PENDING_LEGAL_VERIFICATION,
),
menuItem(
"Maisons-mères non actualisées",
"Comptes administrateur incomplets",
hrefSideMenu("validated"),
currentPathname,
subscriptionCountByStatus?.NEED_LEGAL_VERIFICATION,
),
menuItem(
"Maisons-mères vérifiées",
"Comptes administrateur vérifiés",
hrefSideMenu("up-to-date"),
currentPathname,
subscriptionCountByStatus?.APPROVED,
Expand All @@ -137,12 +128,11 @@ const SubscriptionsLayout = ({ children }: { children: ReactNode }) => {
return (
<div className="flex flex-col flex-1 md:flex-row gap-10 md:gap-0">
<SideMenu
className="flex-shrink-0 flex-grow-0 md:basis-[372px]"
className="flex-shrink-0 flex-grow-0 md:basis-[420px]"
align="left"
burgerMenuButtonText="Inscriptions"
sticky
fullHeight
title="Inscriptions"
items={items}
/>
<div className="mt-3 w-full">{children}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const ValidatedSubscriptionRequestsPage = () => {
subscriptionRequestPage &&
getLegalVerificationPendingSubscriptionRequestsStatus === "success" && (
<SearchList
title="Maisons-mères vérifiées"
title="Comptes administrateur vérifiés"
searchFilter={searchFilter}
searchResultsPage={subscriptionRequestPage}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const ValidatedSubscriptionRequestsPage = () => {
subscriptionRequestPage &&
getValidatedSubscriptionRequestsStatus === "success" && (
<SearchList
title="Maisons-mères non actualisées"
title="Comptes administrateur incomplets"
searchFilter={searchFilter}
searchResultsPage={subscriptionRequestPage}
>
Expand Down
2 changes: 1 addition & 1 deletion packages/reva-admin-react/src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const Header = () => {
{
text: "Inscriptions",
linkProps: {
href: "/subscriptions/pending",
href: "/subscriptions/pending-v2",
target: "_self",
},
isActive: currentPathname.startsWith("/subscriptions"),
Expand Down

0 comments on commit 4caf97c

Please sign in to comment.