diff --git a/src/clients/daily-client.ts b/src/clients/daily-client.ts index 3dd015b..a27b08c 100644 --- a/src/clients/daily-client.ts +++ b/src/clients/daily-client.ts @@ -109,7 +109,8 @@ export class DailyClient { ...checkbox, date: parseDate(checkbox.date), createdAt: parseDate(checkbox.createdAt), - updatedAt: parseDate(checkbox.updatedAt) + updatedAt: parseDate(checkbox.updatedAt), + isArchived: checkbox.text.includes('[ARCHIVÉ]') }; } diff --git a/src/components/daily/DailyCheckboxItem.tsx b/src/components/daily/DailyCheckboxItem.tsx index 884959b..cb34c04 100644 --- a/src/components/daily/DailyCheckboxItem.tsx +++ b/src/components/daily/DailyCheckboxItem.tsx @@ -102,20 +102,27 @@ export function DailyCheckboxItem({ setEditingCheckbox(null); }; + // Vérifier si la tâche est archivée + const isArchived = checkbox.isArchived; + return ( <>