mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
web: use createInternalLink everywhere
This commit is contained in:
@@ -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"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user