A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: improve move dialog ui & fix move note (#9)
Waqar Ahmeda873d9bd1383
diff --git a/apps/web/src/components/dialogs/index.js b/apps/web/src/components/dialogs/index.jsindex c225607dc..650e10628 100644--- a/apps/web/src/components/dialogs/index.js+++ b/apps/web/src/components/dialogs/index.js@@ -53,14 +53,14 @@ const Dialog = props => {color="primary"py={2}>- <Box height={props.iconSize || 42}>- <props.icon size={props.iconSize || 42} />+ <Box height={props.iconSize || 18}>+ <props.icon size={props.iconSize || 18} /></Box><Textmx={2}as="span"variant="title"- fontSize={28}+ fontSize={16}textAlign="center">{props.title}@@ -90,7 +90,7 @@ const Dialog = props => {<RebassButtonvariant="secondary"width={"25%"}- onClick={props.negativeButton.click}+ onClick={props.negativeButton.onClick}>{props.negativeButton.text || "Cancel"}</RebassButton>@@ -457,7 +457,7 @@ export const MoveDialog = props => {text: "Move",click: async () => {try {- await db.notes.move(MoveDialog.topic, props.noteId);+ await db.notes.move({id: MoveDialog.notebook.id, topic: MoveDialog.topic}, props.noteId);props.onMove();} catch (e) {console.log(e);diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.jsindex 7b68454cc..c9923d223 100644--- a/apps/web/src/components/note/index.js+++ b/apps/web/src/components/note/index.js@@ -10,7 +10,7 @@ import { ask, moveNote } from "../dialogs";const dropdownRefs = [];const menuItems = note => [{- title: note.notebook.notebook ? "Move" : "Add to",+ title: note.notebook ? "Move" : "Add to",onClick: async () => {console.log(note.id, note.notebook);if (await moveNote(note.id, note.notebook)) {