added edit page and revised edit form

This commit is contained in:
Haeri Kim
2026-06-14 10:47:21 +09:00
parent aadc80b7a8
commit cdf3643622
9 changed files with 736 additions and 42 deletions

View File

@@ -116,3 +116,8 @@ export function addJournal(entry) {
export function removeJournal(id) {
journals.update((entries) => entries.filter((e) => e.id !== id));
}
/** @param {JournalEntry} updated */
export function updateJournal(updated) {
journals.update((entries) => entries.map((e) => e.id === updated.id ? updated : e));
}