refactor: remove unused handleAddCheckbox function in FormsSection

- Deleted the `handleAddCheckbox` function from `FormsSection` as it was not being utilized, streamlining the component's code.
This commit is contained in:
Julien Froidefond
2025-10-01 13:41:17 +02:00
parent 7ebf7d491b
commit 352a65af47

View File

@@ -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 =>