web: use createInternalLink everywhere

This commit is contained in:
Abdullah Atta
2024-01-24 19:30:00 +05:00
parent 09f37ae872
commit b40fe805e7
2 changed files with 9 additions and 4 deletions

View File

@@ -66,6 +66,7 @@ import { deleteItems } from "../utils/functions";
import { convertNoteToText } from "../utils/note-to-text";
import { sleep } from "../utils/time";
import { ReferencesList } from "../components/sheets/references";
import { createInternalLink } from "@notesnook/core";
export const useActions = ({
close,
@@ -808,10 +809,10 @@ export const useActions = ({
title: "Copy link",
icon: "link",
func: () => {
Clipboard.setString(`nn://note/${item.id}`);
Clipboard.setString(createInternalLink("note", item.id));
ToastManager.show({
heading: "Note link copied",
message: `nn://note/${item.id}`,
message: createInternalLink("note", item.id),
context: "local",
type: "success"
});