Skip to content

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

fix: resolve all warnings

thecodrrbfeabd429908
diff --git a/apps/web/src/app.js b/apps/web/src/app.js
index 4ef7e91f1..e276d85b5 100644
--- a/apps/web/src/app.js
+++ b/apps/web/src/app.js
@@ -51,7 +51,14 @@ function App() {
setIsVaultCreated(await db.vault.exists());
})();
},
- [refreshColors, refreshMenuPins, initUser, initNotes, addReminder]
+ [
+ refreshColors,
+ refreshMenuPins,
+ initUser,
+ initNotes,
+ addReminder,
+ setIsVaultCreated,
+ ]
);
useEffect(() => {
diff --git a/apps/web/src/common/index.js b/apps/web/src/common/index.js
index 0080c6021..e551b47d7 100644
--- a/apps/web/src/common/index.js
+++ b/apps/web/src/common/index.js
@@ -3,9 +3,6 @@ import StorageInterface from "../interfaces/storage";
import Database from "notes-core/api/";
import SelectionOptions from "./selectionoptions";
import EventSource from "eventsource";
-import { store as editorStore } from "../stores/editor-store";
-import { store as noteStore } from "../stores/note-store";
-import { showAddNotebookDialog } from "../components/dialogs/addnotebookdialog";
import { showTopicDialog } from "../components/dialogs/topicdialog";
import { showToast } from "../utils/toast";
import download from "../utils/download";
diff --git a/apps/web/src/components/dialogs/logindialog.js b/apps/web/src/components/dialogs/logindialog.js
index 392aae593..e30e771c2 100644
--- a/apps/web/src/components/dialogs/logindialog.js
+++ b/apps/web/src/components/dialogs/logindialog.js
@@ -2,7 +2,6 @@ import React, { useEffect, useState } from "react";
import { Flex, Button, Text } from "rebass";
import * as Icon from "../icons";
import Dialog, { showDialog } from "./dialog";
-import { showSignUpDialog } from "./signupdialog";
import { useStore } from "../../stores/user-store";
import Field from "../field";
import { Checkbox, Label } from "@rebass/forms";
diff --git a/apps/web/src/components/navigation-menu/index.js b/apps/web/src/components/navigation-menu/index.js
index caece02de..6d8b86458 100644
--- a/apps/web/src/components/navigation-menu/index.js
+++ b/apps/web/src/components/navigation-menu/index.js
@@ -10,7 +10,6 @@ import NavigationItem from "./navigation-item";
import { hashNavigate, navigate } from "../../navigation";
import { toTitleCase } from "../../utils/string";
import { COLORS } from "../../common";
-import { showLogInDialog } from "../dialogs/logindialog";
import useMobile from "../../utils/use-mobile";
import useTablet from "../../utils/use-tablet";
import { useLocation } from "wouter";
diff --git a/apps/web/src/components/notebook/index.js b/apps/web/src/components/notebook/index.js
index 863e406cb..4771eb8c4 100644
--- a/apps/web/src/components/notebook/index.js
+++ b/apps/web/src/components/notebook/index.js
@@ -3,7 +3,6 @@ import { Flex, Text } from "rebass";
import ListItem from "../list-item";
import { store } from "../../stores/notebook-store";
import { store as appStore } from "../../stores/app-store";
-import { showEditNotebookDialog } from "../dialogs/addnotebookdialog";
import { showDeleteConfirmation } from "../dialogs/confirm";
import { showItemDeletedToast, showUnpinnedToast } from "../../common/toasts";
import { db } from "../../common";
diff --git a/apps/web/src/stores/app-store.js b/apps/web/src/stores/app-store.js
index e486a3298..3aa20949f 100644
--- a/apps/web/src/stores/app-store.js
+++ b/apps/web/src/stores/app-store.js
@@ -3,7 +3,6 @@ import { db } from "../common";
import { store as noteStore } from "./note-store";
import { store as notebookStore } from "./notebook-store";
import { store as trashStore } from "./trash-store";
-import { store as editorStore } from "./editor-store";
import { store as tagStore } from "./tag-store";
import BaseStore from "./index";
import { isMobile } from "../utils/dimensions";
diff --git a/apps/web/src/utils/use-routes.js b/apps/web/src/utils/use-routes.js
index 6b7e89f87..2223b64d6 100644
--- a/apps/web/src/utils/use-routes.js
+++ b/apps/web/src/utils/use-routes.js
@@ -1,4 +1,3 @@
-import React from "react";
import { useLocation } from "wouter";
import makeMatcher from "wouter/matcher";
diff --git a/apps/web/src/views/notebooks.js b/apps/web/src/views/notebooks.js
index ebce41dd3..14a1dc56b 100644
--- a/apps/web/src/views/notebooks.js
+++ b/apps/web/src/views/notebooks.js
@@ -1,5 +1,4 @@
import React, { useEffect } from "react";
-import { showAddNotebookDialog } from "../components/dialogs/addnotebookdialog";
import ListContainer from "../components/list-container";
import { useStore, store } from "../stores/notebook-store";
import NotebooksPlaceholder from "../components/placeholders/notebooks-placeholder";
diff --git a/apps/web/src/views/settings.js b/apps/web/src/views/settings.js
index e73468474..972814067 100644
--- a/apps/web/src/views/settings.js
+++ b/apps/web/src/views/settings.js
@@ -1,4 +1,4 @@
-import React, { useEffect, useMemo, useState } from "react";
+import React, { useEffect, useMemo } from "react";
import { Button, Flex, Text } from "rebass";
import * as Icon from "../components/icons";
import { useStore as useUserStore } from "../stores/user-store";
@@ -20,7 +20,6 @@ import { usePersistentState } from "../utils/hooks";
import dayjs from "dayjs";
import { showRecoveryKeyDialog } from "../components/dialogs/recoverykeydialog";
import { showBuyDialog } from "../components/dialogs/buy-dialog";
-import Vault from "../common/vault";
import ScrollContainer from "../components/scroll-container";
import { showLoadingDialog } from "../components/dialogs/loadingdialog";
import { showToast } from "../utils/toast";