diff --git a/components/kanban/ObjectivesBoard.tsx b/components/kanban/ObjectivesBoard.tsx index cfdf147..8419337 100644 --- a/components/kanban/ObjectivesBoard.tsx +++ b/components/kanban/ObjectivesBoard.tsx @@ -1,6 +1,6 @@ 'use client'; -import { useState } from 'react'; +import { useObjectivesCollapse } from '@/hooks/useObjectivesCollapse'; import { Task } from '@/lib/types'; import { TaskCard } from './TaskCard'; import { Card, CardHeader, CardContent } from '@/components/ui/Card'; @@ -23,7 +23,7 @@ export function ObjectivesBoard({ compactView = false, pinnedTagName = "Objectifs" }: ObjectivesBoardProps) { - const [isCollapsed, setIsCollapsed] = useState(false); + const { isCollapsed, toggleCollapse } = useObjectivesCollapse(); if (tasks.length === 0) { return null; // Ne rien afficher s'il n'y a pas d'objectifs @@ -36,7 +36,7 @@ export function ObjectivesBoard({