Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: add toast when note is saved (only mobile)

thecodrrd4c63f166af1
diff --git a/apps/web/src/components/editor/header.js b/apps/web/src/components/editor/header.js
index 55cdc96c0..c06ccd7d3 100644
--- a/apps/web/src/components/editor/header.js
+++ b/apps/web/src/components/editor/header.js
@@ -7,6 +7,7 @@ import TitleBox from "./title-box";
import { useStore, SESSION_STATES } from "../../stores/editor-store";
import { timeConverter } from "../../utils/time";
import { countWords } from "../../utils/string";
+import { showToast } from "../../utils/toast";
const TextSeperator = () => {
return (
@@ -45,7 +46,10 @@ function Header() {
display: ["block", "none", "none"],
}}
size={30}
- onClick={() => clearSession()}
+ onClick={() => {
+ clearSession();
+ showToast("success", "Note saved!");
+ }}
/>
<TitleBox
shouldFocus={sessionState === SESSION_STATES.new}