Skip to content

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

refactor: formatting and some other stuff

thecodrr84ba34955d2f
diff --git a/apps/web/src/components/dialogs/confirm.js b/apps/web/src/components/dialogs/confirm.js
index 2b0ff12a9..5e66a7a0c 100644
--- a/apps/web/src/components/dialogs/confirm.js
+++ b/apps/web/src/components/dialogs/confirm.js
@@ -10,19 +10,21 @@ function Confirm(props) {
icon={props.icon}
positiveButton={{
text: "Yes",
- onClick: props.onYes
+ onClick: props.onYes,
}}
negativeButton={{ text: "No", onClick: props.onNo }}
>
<Box my={1}>
- <Text textAlign="center">{props.message}</Text>
+ <Text textAlign="center" variant="body">
+ {props.message}
+ </Text>
</Box>
</Dialog>
);
}
export function confirm(icon, title, message) {
- return showDialog(perform => (
+ return showDialog((perform) => (
<Confirm
title={title}
message={message}
diff --git a/apps/web/src/views/Home.js b/apps/web/src/views/Home.js
index 94b0d8102..e279281ed 100644
--- a/apps/web/src/views/Home.js
+++ b/apps/web/src/views/Home.js
@@ -11,6 +11,7 @@ function Home() {
useEffect(() => store.refresh(), []);
const notes = useStore((store) => store.notes);
const newSession = useEditorStore((store) => store.newSession);
+
return (
<ListContainer
items={notes.items}
diff --git a/apps/web/src/views/Notebooks.js b/apps/web/src/views/Notebooks.js
index a1a3a5d0c..3e55657a7 100644
--- a/apps/web/src/views/Notebooks.js
+++ b/apps/web/src/views/Notebooks.js
@@ -1,5 +1,4 @@
import React, { useState, useEffect } from "react";
-import { db } from "../common";
import Notebook from "../components/notebook";
import AddNotebookDialog from "../components/dialogs/addnotebookdialog";
import ListContainer from "../components/list-container";