style: prettier format
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
79bbbdc4e8
commit
99617f117c
45 changed files with 229 additions and 302 deletions
|
|
@ -20,11 +20,7 @@ import { useEffect } from 'react'
|
|||
import { useNavigate, useParams } from 'react-router-dom'
|
||||
import { Lock } from 'lucide-react'
|
||||
import { usePlan } from '@/features/dashboard/hooks/usePlan'
|
||||
import {
|
||||
isSectionVisible,
|
||||
groupErreursByCritere,
|
||||
critereCodeFromNom,
|
||||
} from '@/entities/report/lib'
|
||||
import { isSectionVisible, groupErreursByCritere, critereCodeFromNom } from '@/entities/report/lib'
|
||||
import type { Report } from '@/entities/report/types'
|
||||
import { useRapport } from '../hooks/useRapport'
|
||||
import { useSimulation } from '../hooks/useSimulation'
|
||||
|
|
@ -171,11 +167,7 @@ export function RapportPage() {
|
|||
|
||||
const { reset } = useSimulation()
|
||||
|
||||
const {
|
||||
data: planData,
|
||||
isLoading: isPlanLoading,
|
||||
isError: isPlanError,
|
||||
} = usePlan()
|
||||
const { data: planData, isLoading: isPlanLoading, isError: isPlanError } = usePlan()
|
||||
|
||||
// FTD-21 — si la simulation n'est pas encore corrigée, rediriger vers /simulation/ee.
|
||||
useEffect(() => {
|
||||
|
|
@ -206,7 +198,9 @@ export function RapportPage() {
|
|||
Simulations
|
||||
</button>
|
||||
<span aria-hidden="true">›</span>
|
||||
<span aria-current="page" className="text-ink-2">Rapport</span>
|
||||
<span aria-current="page" className="text-ink-2">
|
||||
Rapport
|
||||
</span>
|
||||
</nav>
|
||||
|
||||
{(isLoading || isPlanLoading) && <RapportSkeleton />}
|
||||
|
|
@ -232,11 +226,7 @@ export function RapportPage() {
|
|||
|
||||
{rapport && planData && (
|
||||
<>
|
||||
<ScoreHero
|
||||
score={rapport.score}
|
||||
nclc={rapport.nclc}
|
||||
nclcCible={rapport.nclc_cible}
|
||||
/>
|
||||
<ScoreHero score={rapport.score} nclc={rapport.nclc} nclcCible={rapport.nclc_cible} />
|
||||
|
||||
<RevelationCards revelation={rapport.revelation} />
|
||||
|
||||
|
|
@ -258,10 +248,7 @@ export function RapportPage() {
|
|||
<ExercicesSection rapport={rapport} />
|
||||
</BlurredSection>
|
||||
|
||||
<BlurredSection
|
||||
visible={isSectionVisible(planData.plan, 'modele')}
|
||||
onUpgrade={onUpgrade}
|
||||
>
|
||||
<BlurredSection visible={isSectionVisible(planData.plan, 'modele')} onUpgrade={onUpgrade}>
|
||||
<ModeleSection rapport={rapport} />
|
||||
</BlurredSection>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue