changed redirect note to a new tab

This commit is contained in:
Chirag Bhalotia 2023-06-24 21:17:08 +05:30
parent 71b715d612
commit 4b29715b1d
No known key found for this signature in database
GPG Key ID: F7F1F1FBFFD40427
1 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,9 @@ interface NotesLitsProps {
function NotesList({ data, onDeleteNote }: NotesLitsProps) {
function copyNoteLink(id: string) {
navigator.clipboard.writeText(`${window.location.origin.toString()}/notes/${id}`);
navigator.clipboard.writeText(
`${window.location.origin.toString()}/notes/${id}`
);
}
return (
<div className="flex flex-col w-full gap-1">
@ -53,6 +55,8 @@ function NotesList({ data, onDeleteNote }: NotesLitsProps) {
</Button>
<Link
href={`/notes/${note.gist_url_key}`}
target="_blank"
referrerPolicy="no-referrer"
aria-label="Go to Note"
title="Go to Note"
className="rounded-full hover:bg-black p-3 h-min w-min"