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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user