Skip to content

Commit

Permalink
fix(ui): hide dashboard duplicate (#3339)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbenfares authored Nov 2, 2023
1 parent bc23151 commit b1a3ec0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const getDuplicatesOrganismes = async () => {
])
.toArray();

// TODO : pas bien à faire en lookup mongo
await Promise.all(
duplicatesGroup.map(async (currentDuplicateGroup) => {
currentDuplicateGroup.duplicates = await Promise.all(
Expand Down
4 changes: 2 additions & 2 deletions ui/modules/dashboard/DashboardTransverse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import FiltreDate from "@/modules/indicateurs/filters/FiltreDate";
import FiltreOrganismeTerritoire from "@/modules/indicateurs/filters/FiltreOrganismeTerritoire";
import { DashboardWelcome } from "@/theme/components/icons/DashboardWelcome";

import DashboardAdministrateur from "../admin/DashboardAdministrateur";
// import DashboardAdministrateur from "../admin/DashboardAdministrateur";
import {
convertEffectifsFiltersToQuery,
EffectifsFilters,
Expand Down Expand Up @@ -166,7 +166,7 @@ const DashboardTransverse = () => {
</Container>
</Box>
<Container maxW="xl" p="8">
{auth.organisation.type === "ADMINISTRATEUR" && <DashboardAdministrateur />}
{/* {auth.organisation.type === "ADMINISTRATEUR" && <DashboardAdministrateur />} */}
<Heading as="h1" color="#465F9D" fontSize="beta" fontWeight="700" mb={3}>
Aperçu des données de l’apprentissage
</Heading>
Expand Down
11 changes: 6 additions & 5 deletions ui/pages/admin/fusion-organismes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@ import React from "react";
import { getAuthServerSideProps } from "@/common/SSR/getAuthServerSideProps";
import SimplePage from "@/components/Page/SimplePage";
import withAuth from "@/components/withAuth";
import { useOrganismesDuplicatsLists } from "@/hooks/organismes";
import OrganismesDoublonsPage from "@/modules/admin/fusion-organismes/OrganismesDoublonsPage";
// import { useOrganismesDuplicatsLists } from "@/hooks/organismes";
// import OrganismesDoublonsPage from "@/modules/admin/fusion-organismes/OrganismesDoublonsPage";

export const getServerSideProps = async (context) => ({ props: { ...(await getAuthServerSideProps(context)) } });

const PageEffectifsDeSonOrganisme = () => {
const { organismesDuplicats, isLoading } = useOrganismesDuplicatsLists();
// const { organismesDuplicats, isLoading } = useOrganismesDuplicatsLists();

return (
<SimplePage title="Vérifier les duplicats d'organisme">
<Container maxW="xl" p="8">
{organismesDuplicats && (
{/* {organismesDuplicats && (
<OrganismesDoublonsPage isLoading={isLoading} organismesDuplicats={organismesDuplicats} />
)}
)} */}
Fonctionnalité en cours de développement
</Container>
</SimplePage>
);
Expand Down

0 comments on commit b1a3ec0

Please sign in to comment.