Skip to content

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

fix: dialog of topic creation not opening

thecodrrf7c864d44737
diff --git a/apps/web/src/common/dialogcontroller.js b/apps/web/src/common/dialogcontroller.js
index c408f12b3..d064089d0 100644
--- a/apps/web/src/common/dialogcontroller.js
+++ b/apps/web/src/common/dialogcontroller.js
@@ -489,9 +489,9 @@ export function showSignUpDialog() {
));
}
-export function showTopicDialog() {
+export function showCreateTopicDialog() {
return showDialog((Dialogs, perform) => (
- <Dialogs.TopicDialog
+ <Dialogs.ItemDialog
title={"Create topic"}
subtitle={"You can create as many topics as you want."}
onClose={() => {
@@ -515,7 +515,7 @@ export function showEditTopicDialog(notebookId, topicId) {
?.topics?.topic(topicId)?._topic;
if (!topic) return;
return showDialog((Dialogs, perform) => (
- <Dialogs.TopicDialog
+ <Dialogs.ItemDialog
title={"Edit topic"}
subtitle={`You are editing "${topic.title}" topic.`}
icon={Icon.Topic}
@@ -537,7 +537,7 @@ export function showCreateTagDialog() {
return showDialog((Dialogs, perform) => (
<Dialogs.ItemDialog
title={"Create tag"}
- subtitle={"You can create multiple tags."}
+ subtitle={"You can create as many tags as you want."}
onClose={() => {
perform(false);
}}
diff --git a/apps/web/src/components/dialogs/item-dialog.js b/apps/web/src/components/dialogs/item-dialog.js
index da73c306c..b95294d3d 100644
--- a/apps/web/src/components/dialogs/item-dialog.js
+++ b/apps/web/src/components/dialogs/item-dialog.js
@@ -1,6 +1,5 @@
-import React, { useRef } from "react";
+import React from "react";
import { Box } from "rebass";
-import { Input } from "@rebass/forms";
import Dialog from "./dialog";
import Field from "../field";