feat: edit historical check-ins from habit calendars
This commit is contained in:
@@ -433,6 +433,7 @@ function Dashboard({ user, onExpired }: { user: PublicUser; onExpired: () => voi
|
||||
date={today.date}
|
||||
revision={revision}
|
||||
disabled={busy || loading || needsRefresh}
|
||||
onHistorySaved={() => setAttempt(value => value + 1)}
|
||||
onUpdate={update}
|
||||
onManage={manage}
|
||||
onExpired={() => expired.current()}
|
||||
@@ -454,6 +455,7 @@ function SavedHabit({
|
||||
disabled,
|
||||
onUpdate,
|
||||
onManage,
|
||||
onHistorySaved,
|
||||
onExpired,
|
||||
}: {
|
||||
habit: TodayHabit;
|
||||
@@ -466,6 +468,7 @@ function SavedHabit({
|
||||
taskId?: string
|
||||
) => Promise<void>;
|
||||
onExpired: () => void;
|
||||
onHistorySaved: () => void;
|
||||
onManage: (
|
||||
habit: TodayHabit,
|
||||
patch: Record<string, unknown> | null,
|
||||
@@ -483,6 +486,7 @@ function SavedHabit({
|
||||
revision={revision}
|
||||
disabled={disabled}
|
||||
onExpired={onExpired}
|
||||
onHistorySaved={onHistorySaved}
|
||||
onEdit={(color) => setEditing({ mode: "edit", color })}
|
||||
onDelete={() => setEditing({ mode: "delete", color: "#196127" })}
|
||||
editor={
|
||||
|
||||
Reference in New Issue
Block a user