Skip to content

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

fix: make labels consistent

thecodrrb856c7606838
diff --git a/apps/web/src/common/store.js b/apps/web/src/common/store.js
index 27213323d..15c2a7c7b 100644
--- a/apps/web/src/common/store.js
+++ b/apps/web/src/common/store.js
@@ -1,4 +1,4 @@
-import produce, { immerable } from "immer";
+// import produce, { immerable } from "immer";
import create from "zustand";
// function immer(config) {
diff --git a/apps/web/src/components/notebook/index.js b/apps/web/src/components/notebook/index.js
index 78bcae713..2bfebc97a 100644
--- a/apps/web/src/components/notebook/index.js
+++ b/apps/web/src/components/notebook/index.js
@@ -31,7 +31,7 @@ function menuItems(notebook, index) {
onClick: () => hashNavigate(`/notebooks/${notebook.id}/edit`),
},
{
- title: "Delete",
+ title: "Move to trash",
color: "red",
onClick: () => {
showDeleteConfirmation("notebook").then(async (res) => {
diff --git a/apps/web/src/stores/app-store.js b/apps/web/src/stores/app-store.js
index 3aa20949f..ace6ec8f4 100644
--- a/apps/web/src/stores/app-store.js
+++ b/apps/web/src/stores/app-store.js
@@ -7,7 +7,6 @@ import { store as tagStore } from "./tag-store";
import BaseStore from "./index";
import { isMobile } from "../utils/dimensions";
import { showToast } from "../utils/toast";
-import { toTitleCase } from "../utils/string";
import { resetReminders } from "../common/reminders";
class AppStore extends BaseStore {
@@ -88,14 +87,14 @@ class AppStore extends BaseStore {
}
});
await db.settings.unpin(item.id);
- showToast("success", `${toTitleCase(item.type)} unpinned from menu!`);
+ showToast("success", `Shortcut created!`);
} else {
this.set((state) => state.menuPins.push(item));
await db.settings.pin(item.type, {
id: item.id,
notebookId: item.notebookId,
});
- showToast("success", `${toTitleCase(item.type)} pinned to menu!`);
+ showToast("success", `Shortcut removed!`);
}
// refresh the respective list
diff --git a/apps/web/src/stores/editor-store.js b/apps/web/src/stores/editor-store.js
index 7f07b1fc9..074eab090 100644
--- a/apps/web/src/stores/editor-store.js
+++ b/apps/web/src/stores/editor-store.js
@@ -4,7 +4,6 @@ import { store as appStore } from "./app-store";
import { store as tagStore } from "./tag-store";
import { db } from "../common";
import BaseStore from ".";
-import { qclone } from "qclone";
import { EV } from "notes-core/common";
import { hashNavigate } from "../navigation";