refactor(simulation-ee): Sprint 3.5 clean — FTD-17/18/19 résolus, factorisation SimulationForm
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
385b29679e
commit
18f92098cb
11 changed files with 36 additions and 66 deletions
|
|
@ -14,9 +14,8 @@
|
|||
import { useEffect } from 'react'
|
||||
import ReactMarkdown from 'react-markdown'
|
||||
import { Link, useNavigate, useParams } from 'react-router-dom'
|
||||
import { useQuery } from '@tanstack/react-query'
|
||||
import { Lock } from 'lucide-react'
|
||||
import { getPlanStatus } from '@/entities/user/api'
|
||||
import { usePlan } from '@/features/dashboard/hooks/usePlan'
|
||||
import { isSectionVisible } from '@/entities/report/lib'
|
||||
import { useRapport } from '../hooks/useRapport'
|
||||
import { Card } from '@/shared/ui/Card'
|
||||
|
|
@ -130,11 +129,7 @@ export function RapportPage() {
|
|||
data: planData,
|
||||
isLoading: isPlanLoading,
|
||||
isError: isPlanError,
|
||||
} = useQuery({
|
||||
queryKey: ['plan'],
|
||||
queryFn: getPlanStatus,
|
||||
staleTime: 5 * 60 * 1000,
|
||||
})
|
||||
} = usePlan()
|
||||
|
||||
const onUpgrade = () => navigate('/plan')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue