From 352a65af47e93dc51e3fc0257c63d636b3513169 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Wed, 1 Oct 2025 13:41:17 +0200 Subject: [PATCH] refactor: remove unused handleAddCheckbox function in FormsSection - Deleted the `handleAddCheckbox` function from `FormsSection` as it was not being utilized, streamlining the component's code. --- src/components/ui-showcase/sections/FormsSection.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/components/ui-showcase/sections/FormsSection.tsx b/src/components/ui-showcase/sections/FormsSection.tsx index 4573d4c..80b0bfc 100644 --- a/src/components/ui-showcase/sections/FormsSection.tsx +++ b/src/components/ui-showcase/sections/FormsSection.tsx @@ -19,15 +19,6 @@ export function FormsSection() { { id: '3', text: 'Tâche en cours', isChecked: false, type: 'task' } ]); - const handleAddCheckbox = (text: string) => { - const newItem: CheckboxItemData = { - id: Date.now().toString(), - text, - isChecked: false, - type: 'task' - }; - setCheckboxItems(prev => [...prev, newItem]); - }; const handleToggleCheckbox = (id: string) => { setCheckboxItems(prev =>