feat: a note that the note was public

This commit is contained in:
Artemy 2023-04-02 11:40:15 +03:00
parent 990ef17d58
commit d74763e02c

View file

@ -38,7 +38,12 @@ function PubNote() {
else {
if (note.save !== false) {
localStorage.setItem("NoteName", note.name);
localStorage.setItem("NoteText", note.text);
localStorage.setItem(
"NoteText",
`*(публичная заметка) (была опубликована в ${printDate(
note.time
)})* \n${note.text}`
);
return <Navigate to="/notes/save-local" replace={true} />;
} else {
return (