Skip to content

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

feat: add logic to make a new note button in editor placeholder

thecodrra3f3c2e237e0
diff --git a/apps/web/src/components/editor/-placeholder.js b/apps/web/src/components/editor/-placeholder.js
index b8cfdcd96..4a680f072 100644
--- a/apps/web/src/components/editor/-placeholder.js
+++ b/apps/web/src/components/editor/-placeholder.js
@@ -1,5 +1,6 @@
import React from "react";
import { Button, Flex, Image, Text } from "rebass";
+import { hashNavigate } from "../../navigation";
import * as Icon from "../icons";
function EditorPlaceholder() {
@@ -22,7 +23,7 @@ function EditorPlaceholder() {
justifyContent: "center",
}}
variant="tool"
- onClick={() => {}}
+ onClick={() => hashNavigate("/notes/create")}
>
<Icon.Plus size={18} color="primary" />
<Text ml={1}>Make a new note</Text>