Skip to content

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

fix: resolve all warnings

thecodrrab08b31b2410
diff --git a/apps/web/src/components/editor/react-quill.js b/apps/web/src/components/editor/react-quill.js
index 4b2a7e05b..e68283a0f 100644
--- a/apps/web/src/components/editor/react-quill.js
+++ b/apps/web/src/components/editor/react-quill.js
@@ -1,5 +1,4 @@
import React, { Component } from "react";
-import { Box } from "rebass";
import Quill from "quill";
import "quill/dist/quill.snow.css";
import MarkdownShortcuts from "./modules/markdown";
diff --git a/apps/web/src/components/icons/index.js b/apps/web/src/components/icons/index.js
index c73c48262..8d65a7152 100644
--- a/apps/web/src/components/icons/index.js
+++ b/apps/web/src/components/icons/index.js
@@ -8,9 +8,9 @@ export const PinIcon = ({ size }) => (
viewBox={`0 0 24 24`}
fill="none"
stroke="currentColor"
- stroke-width="2"
- stroke-linecap="round"
- stroke-linejoin="round"
+ strokeWidth="2"
+ strokeLinecap="round"
+ strokeLinejoin="round"
>
<path d="M17.85 10.2l-4.24 5.65m4.24-5.66L13.6 5.95m4.24 4.24a2 2 0 0 0 2.83 0l.7-.7-7.07-7.08-.7.71a2 2 0 0 0 0 2.83m0 9.9l-5.66-5.66m5.66 5.66s1.76 2.47-.71 4.95L3 10.9c2.47-2.48 4.95-.7 4.95-.7m0 0l5.66-4.25M7.95 15.85l-4.24 4.24" />
</svg>
diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.js
index d08f5a1d2..dfbc95a05 100644
--- a/apps/web/src/components/note/index.js
+++ b/apps/web/src/components/note/index.js
@@ -2,7 +2,6 @@ import React from "react";
import { Flex } from "rebass";
import * as Icon from "react-feather";
import TimeAgo from "timeago-react";
-import { ev } from "../../common";
import { showSnack } from "../snackbar";
import ListItem from "../list-item";
import { confirm } from "../dialogs/confirm";
@@ -48,10 +47,6 @@ const menuItems = (note, index, groupIndex) => [
}
];
-function sendOpenNoteEvent(note) {
- ev.emit("onOpenNote", note);
-}
-
export default class Note extends React.Component {
shouldComponentUpdate(nextProps) {
const prevItem = this.props.item;
diff --git a/apps/web/src/components/properties/index.js b/apps/web/src/components/properties/index.js
index 45d663f9a..0f8651a2c 100644
--- a/apps/web/src/components/properties/index.js
+++ b/apps/web/src/components/properties/index.js
@@ -6,7 +6,7 @@ import CheckBox from "../checkbox";
import { PinIcon } from "../icons";
import { usePersistentState } from "../../utils/hooks";
import { useStore } from "../../stores/editor-store";
-import { COLORS, db } from "../../common";
+import { COLORS } from "../../common";
const Properties = props => {
const [visible, setVisible] = usePersistentState("propertiesVisible", false);
diff --git a/apps/web/src/views/Home.js b/apps/web/src/views/Home.js
index 6da25503a..9da278941 100644
--- a/apps/web/src/views/Home.js
+++ b/apps/web/src/views/Home.js
@@ -1,7 +1,7 @@
-import React, { useEffect, useState } from "react";
+import React, { useEffect } from "react";
import { Flex, Text, Box } from "rebass";
import * as Icon from "react-feather";
-import { db, sendNewNoteEvent } from "../common";
+import { db } from "../common";
import { GroupedVirtuoso as GroupList } from "react-virtuoso";
import Button from "../components/button";
import Search from "../components/search";