Skip to content

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

refactor: cleanup

thecodrraed1eea55adb
diff --git a/apps/web/src/app.js b/apps/web/src/app.js
index 990ea51dc..5c5c8efc1 100644
--- a/apps/web/src/app.js
+++ b/apps/web/src/app.js
@@ -2,11 +2,9 @@ import React, { useState, useEffect } from "react";
import "./app.css";
import Editor from "./components/editor";
import { ThemeProvider } from "emotion-theming";
-import { Flex, Box, Text, Button, Card, Heading } from "rebass";
-import * as Icon from "react-feather";
-import theme, { SHADOW } from "./theme";
+import { Flex, Box, Button } from "rebass";
+import theme from "./theme";
import { routes, navigate } from "./navigation";
-import Home from "../src/views/Home";
const NavMenuItem = props => {
useEffect(() => {
diff --git a/apps/web/src/views/Home.js b/apps/web/src/views/Home.js
index d8f6d4dec..2fd14d325 100644
--- a/apps/web/src/views/Home.js
+++ b/apps/web/src/views/Home.js
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react";
-import { Flex, Box, Text, Heading } from "rebass";
+import { Flex, Box, Text } from "rebass";
import * as Icon from "react-feather";
import { SHADOW } from "../theme";
import { Input } from "@rebass/forms";
@@ -14,6 +14,7 @@ import { Virtuoso as List } from "react-virtuoso";
import { showSnack } from "../components/snackbar";
import Menu from "../components/menu";
+const dropdownRefs = [];
const menuItems = [
{ title: "Favorite", icon: Icon.Heart },
{ title: "Share", icon: Icon.Share2 },
@@ -33,7 +34,6 @@ const menuItems = [
}
}
];
-let dropdownRefs = [];
function sendNewNoteEvent() {
ev.emit("onNewNote");