feat: update checkbox actions to include type parameter

- Modified `addTodayCheckboxAction` and `addYesterdayCheckboxAction` to accept a `type` parameter for better flexibility in checkbox creation.
- Updated corresponding function signatures in `daily.ts` to reflect the new parameter, ensuring consistent usage across the application.
This commit is contained in:
Julien Froidefond
2025-09-19 08:50:55 +02:00
parent c2681f9399
commit 128167341e
2 changed files with 6 additions and 4 deletions

View File

@@ -87,7 +87,7 @@ export function useDaily(initialDate?: Date, initialDailyView?: DailyView): UseD
try {
setError(null);
const result = await addTodayCheckboxAction(text, taskId);
const result = await addTodayCheckboxAction(text, type, taskId);
if (result.success && result.data) {
// Mise à jour optimiste
@@ -117,7 +117,7 @@ export function useDaily(initialDate?: Date, initialDailyView?: DailyView): UseD
try {
setError(null);
const result = await addYesterdayCheckboxAction(text, taskId);
const result = await addYesterdayCheckboxAction(text, type, taskId);
if (result.success && result.data) {
// Mise à jour optimiste