mirror of https://github.com/BRAVO68WEB/shx.git
changed redirect note to a new tab
This commit is contained in:
parent
71b715d612
commit
4b29715b1d
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue