mobile: fix new reminder title/headline is not autofill

This commit is contained in:
Ammar Ahmed
2025-05-17 12:30:21 +05:00
parent be5a1605b7
commit 24cd98fe2e
2 changed files with 4 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ import { Dialog } from "../../dialog";
import { ReminderTime } from "../../ui/reminder-time";
import Heading from "../../ui/typography/heading";
import Paragraph from "../../ui/typography/paragraph";
import { ItemReference, Note, Reminder } from "@notesnook/core";
import { Note, Reminder } from "@notesnook/core";
import { strings } from "@notesnook/intl";
import { DefaultAppStyles } from "../../../utils/styles";
@@ -57,7 +57,7 @@ type ReminderSheetProps = {
close?: (ctx?: string) => void;
update?: (options: PresentSheetOptions) => void;
reminder?: Reminder;
reference?: ItemReference;
reference?: Note;
};
const ReminderModes =
@@ -612,7 +612,7 @@ export default function ReminderSheet({
ReminderSheet.present = (
reminder?: Reminder,
reference?: ItemReference,
reference?: Note,
isSheet?: boolean
) => {
presentSheet({

View File

@@ -928,7 +928,7 @@ export const useActions = ({
title: strings.remindMe(),
icon: "clock-plus-outline",
onPress: () => {
ReminderSheet.present(undefined, { id: item.id, type: "note" });
ReminderSheet.present(undefined, item);
}
},
{