mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
web: set note title as default reminder title
This commit is contained in:
committed by
Abdullah Atta
parent
82a80269d3
commit
b7af3d92c9
@@ -133,6 +133,15 @@ export default function AddReminderDialog(props: AddReminderDialogProps) {
|
||||
setDescription(reminder.description);
|
||||
}, [reminderId]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!noteId) return;
|
||||
const note = db.notes?.note(noteId);
|
||||
if (!note) return;
|
||||
|
||||
setTitle(note.title);
|
||||
setDescription(note.headline);
|
||||
}, [noteId]);
|
||||
|
||||
const repeatsDaily =
|
||||
(selectedDays.length === 7 && recurringMode === RecurringModes.WEEK) ||
|
||||
(selectedDays.length === 31 && recurringMode === RecurringModes.MONTH) ||
|
||||
|
||||
Reference in New Issue
Block a user