Skip to content

Commit

Permalink
feat: add Qualibat
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierJp committed Jun 5, 2024
1 parent dc1a68f commit 4551b2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { EAdministration } from '#models/administrations/EAdministration';
import { IAPILoading, isAPILoading } from '#models/api-loading';
import {
IAPINotRespondingError,
isAPI404,
isAPINotResponding,
} from '#models/api-not-responding';
import { IUniteLegale } from '#models/core/types';
Expand Down Expand Up @@ -77,7 +76,7 @@ function DirigeantsProtectedSection({

if (!isAPILoading(mandatairesRCS)) {
if (
isAPI404(mandatairesRCS) ||
isAPINotResponding(mandatairesRCS) ||
(!isAPINotResponding(mandatairesRCS) && mandatairesRCS.length === 0)
) {
return (
Expand Down
3 changes: 2 additions & 1 deletion app/(header-default)/labels-certificats/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
checkHasQuality,
} from '#components/badges-section/labels-and-certificates';
import { OpqibiSection } from '#components/espace-agent-components/certifications/opqibi-section';
import { QualibatSection } from '#components/espace-agent-components/certifications/qualibat-section';
import { QualifelecSection } from '#components/espace-agent-components/certifications/qualifelec-section';
import { CertificationsBioSection } from '#components/labels-and-certificates/bio';
import { EgaproSection } from '#components/labels-and-certificates/egapro';
Expand Down Expand Up @@ -119,7 +120,7 @@ const LabelsAndCertificatsPage = async (props: AppRouterProps) => {
{hasRights(session, EScope.protectedCertificats) && (
<>
<HorizontalSeparator />
{/* <QualibatSection qualibat={protectedCertificates.qualibat} /> */}
<QualibatSection uniteLegale={uniteLegale} />
<QualifelecSection uniteLegale={uniteLegale} />
<OpqibiSection uniteLegale={uniteLegale} />
</>
Expand Down

0 comments on commit 4551b2e

Please sign in to comment.