diff --git a/apps/app/components/core/feeds.tsx b/apps/app/components/core/feeds.tsx
index d4781398d..92f6e634f 100644
--- a/apps/app/components/core/feeds.tsx
+++ b/apps/app/components/core/feeds.tsx
@@ -16,8 +16,6 @@ import { Icon } from "components/ui";
import { renderShortDateWithYearFormat, timeAgo } from "helpers/date-time.helper";
import { addSpaceIfCamelCase } from "helpers/string.helper";
import Tiptap from "components/tiptap";
-// types
-// import RemirrorRichTextEditor from "components/rich-text-editor";
const activityDetails: {
[key: string]: {
@@ -262,17 +260,6 @@ export const Feeds: React.FC = ({ activities }) => {
noBorder
customClassName="text-xs border border-custom-border-200 bg-custom-background-100"
/>
- {/**/}
- {/* */}
diff --git a/apps/app/components/core/modals/gpt-assistant-modal.tsx b/apps/app/components/core/modals/gpt-assistant-modal.tsx
index 0c5e0eded..b9bf09ace 100644
--- a/apps/app/components/core/modals/gpt-assistant-modal.tsx
+++ b/apps/app/components/core/modals/gpt-assistant-modal.tsx
@@ -1,7 +1,6 @@
import React, { useEffect, useState, forwardRef, useRef } from "react";
import { useRouter } from "next/router";
-import dynamic from "next/dynamic";
// react-hook-form
import { useForm } from "react-hook-form";
@@ -33,18 +32,6 @@ type FormData = {
task: string;
};
-// const RemirrorRichTextEditor = dynamic(() => import("components/rich-text-editor"), {
-// ssr: false,
-// });
-//
-// import { IRemirrorRichTextEditor } from "components/rich-text-editor";
-//
-// const WrappedRemirrorRichTextEditor = forwardRef(
-// (props, ref) =>
-// );
-//
-// WrappedRemirrorRichTextEditor.displayName = "WrappedRemirrorRichTextEditor";
-
const TiptapEditor = React.forwardRef<
ITiptapRichTextEditor,
ITiptapRichTextEditor
@@ -52,7 +39,6 @@ const TiptapEditor = React.forwardRef<
TiptapEditor.displayName = "TiptapEditor";
-
export const GptAssistantModal: React.FC = ({
isOpen,
handleClose,
@@ -169,14 +155,6 @@ export const GptAssistantModal: React.FC = ({
editable={false}
ref={editorRef}
/>
- {/* {content}
} */}
- {/* customClassName="-m-3" */}
- {/* noBorder */}
- {/* borderOnFocus={false} */}
- {/* editable={false} */}
- {/* ref={editorRef} */}
- {/* /> */}
)}
{response !== "" && (
@@ -189,14 +167,6 @@ export const GptAssistantModal: React.FC = ({
borderOnFocus={false}
editable={false}
/>
-
- {/* ${response}`} */}
- {/* customClassName="-mx-3 -my-3" */}
- {/* noBorder */}
- {/* borderOnFocus={false} */}
- {/* editable={false} */}
- {/* /> */}
)}
{invalidResponse && (
diff --git a/apps/app/components/issues/comment/add-comment.tsx b/apps/app/components/issues/comment/add-comment.tsx
index 157f56dce..87fb745a7 100644
--- a/apps/app/components/issues/comment/add-comment.tsx
+++ b/apps/app/components/issues/comment/add-comment.tsx
@@ -18,23 +18,6 @@ import type { ICurrentUserResponse, IIssueComment } from "types";
import { PROJECT_ISSUES_ACTIVITY } from "constants/fetch-keys";
import Tiptap, { ITiptapRichTextEditor } from "components/tiptap";
-// const RemirrorRichTextEditor = dynamic(() => import("components/rich-text-editor"), {
-// ssr: false,
-// loading: () => (
-//
-//
-//
-// ),
-// });
-// import { IRemirrorRichTextEditor } from "components/rich-text-editor";
-//
-// const WrappedRemirrorRichTextEditor = React.forwardRef<
-// IRemirrorRichTextEditor,
-// IRemirrorRichTextEditor
-// >((props, ref) => );
-//
-// WrappedRemirrorRichTextEditor.displayName = "WrappedRemirrorRichTextEditor";
-
const TiptapEditor = React.forwardRef<
ITiptapRichTextEditor,
ITiptapRichTextEditor
diff --git a/apps/app/components/issues/comment/comment-card.tsx b/apps/app/components/issues/comment/comment-card.tsx
index 10da0b74e..f2770cc77 100644
--- a/apps/app/components/issues/comment/comment-card.tsx
+++ b/apps/app/components/issues/comment/comment-card.tsx
@@ -1,7 +1,5 @@
import React, { useEffect, useState } from "react";
-import dynamic from "next/dynamic";
-
// react-hook-form
import { useForm } from "react-hook-form";
// icons
@@ -17,17 +15,6 @@ import { timeAgo } from "helpers/date-time.helper";
import type { IIssueComment } from "types";
import Tiptap, { ITiptapRichTextEditor } from "components/tiptap";
-// const RemirrorRichTextEditor = dynamic(() => import("components/rich-text-editor"), { ssr: false });
-//
-// import { IRemirrorRichTextEditor } from "components/rich-text-editor";
-//
-// const WrappedRemirrorRichTextEditor = React.forwardRef<
-// IRemirrorRichTextEditor,
-// IRemirrorRichTextEditor
-// >((props, ref) => );
-//
-// WrappedRemirrorRichTextEditor.displayName = "WrappedRemirrorRichTextEditor";
-
const TiptapEditor = React.forwardRef<
ITiptapRichTextEditor,
ITiptapRichTextEditor
@@ -115,15 +102,6 @@ export const CommentCard: React.FC = ({ comment, onSubmit, handleCommentD
className={`flex-col gap-2 ${isEditing ? "flex" : "hidden"}`}
onSubmit={handleSubmit(onEnter)}
>
- {/* { */}
- {/* setValue("comment_json", jsonValue); */}
- {/* setValue("comment_html", htmlValue); */}
- {/* }} */}
- {/* placeholder="Enter Your comment..." */}
- {/* ref={editorRef} */}
- {/* /> */}
= ({ comment, onSubmit, handleCommentD
editable={false}
customClassName="text-xs border border-custom-border-200 bg-custom-background-100"
/>
- {/* */}
diff --git a/apps/app/components/issues/form.tsx b/apps/app/components/issues/form.tsx
index 8f71c8e53..c2a32b4e4 100644
--- a/apps/app/components/issues/form.tsx
+++ b/apps/app/components/issues/form.tsx
@@ -1,6 +1,5 @@
import React, { FC, useState, useEffect, useRef } from "react";
-import dynamic from "next/dynamic";
import { useRouter } from "next/router";
// react-hook-form
@@ -36,25 +35,8 @@ import {
import { SparklesIcon, XMarkIcon } from "@heroicons/react/24/outline";
// types
import type { ICurrentUserResponse, IIssue, ISearchIssueResponse } from "types";
-import Tiptap from "components/tiptap";
// rich-text-editor
-// const RemirrorRichTextEditor = dynamic(() => import("components/rich-text-editor"), {
-// ssr: false,
-// loading: () => (
-//
-//
-//
-// ),
-// });
-
-// import { IRemirrorRichTextEditor } from "components/rich-text-editor";
-
-// const WrappedRemirrorRichTextEditor = React.forwardRef<
-// IRemirrorRichTextEditor,
-// IRemirrorRichTextEditor
-// >((props, ref) => );
-//
-// WrappedRemirrorRichTextEditor.displayName = "WrappedRemirrorRichTextEditor";
+import Tiptap from "components/tiptap";
const defaultValues: Partial = {
project: "",
diff --git a/apps/app/components/pages/create-update-block-inline.tsx b/apps/app/components/pages/create-update-block-inline.tsx
index 620d47241..da7384921 100644
--- a/apps/app/components/pages/create-update-block-inline.tsx
+++ b/apps/app/components/pages/create-update-block-inline.tsx
@@ -1,7 +1,6 @@
import React, { useCallback, useEffect, useState } from "react";
import { useRouter } from "next/router";
-import dynamic from "next/dynamic";
import { mutate } from "swr";
@@ -18,7 +17,7 @@ import useToast from "hooks/use-toast";
// components
import { GptAssistantModal } from "components/core";
// ui
-import { Loader, PrimaryButton, SecondaryButton, TextArea } from "components/ui";
+import { PrimaryButton, SecondaryButton, TextArea } from "components/ui";
// types
import { ICurrentUserResponse, IPageBlock } from "types";
// fetch-keys
@@ -40,23 +39,6 @@ const defaultValues = {
description_html: null,
};
-// const RemirrorRichTextEditor = dynamic(() => import("components/rich-text-editor"), {
-// ssr: false,
-// loading: () => (
-//
-//
-//
-// ),
-// });
-// import { IRemirrorRichTextEditor } from "components/rich-text-editor";
-//
-// const WrappedRemirrorRichTextEditor = React.forwardRef<
-// IRemirrorRichTextEditor,
-// IRemirrorRichTextEditor
-// >((props, ref) => );
-//
-// WrappedRemirrorRichTextEditor.displayName = "WrappedRemirrorRichTextEditor";
-
const TiptapEditor = React.forwardRef<
ITiptapRichTextEditor,
ITiptapRichTextEditor
@@ -322,19 +304,6 @@ export const CreateUpdateBlockInline: React.FC = ({
setValue("description", description);
}}
/>
- // setValue("description", jsonValue)}
- // onHTMLChange={(htmlValue) => setValue("description_html", htmlValue)}
- // placeholder="Write something..."
- // customClassName="text-sm"
- // noBorder
- // borderOnFocus={false}
- // ref={editorRef}
- // />
);
else if (!value || !watch("description_html"))
return (
@@ -360,22 +329,6 @@ export const CreateUpdateBlockInline: React.FC = ({
setValue("description", description);
}}
/>
- // 0
- // ? value
- // : watch("description_html") && watch("description_html") !== ""
- // ? watch("description_html")
- // : { type: "doc", content: [{ type: "paragraph" }] }
- // }
- // onJSONChange={(jsonValue) => setValue("description", jsonValue)}
- // onHTMLChange={(htmlValue) => setValue("description_html", htmlValue)}
- // placeholder="Write something..."
- // customClassName="text-sm"
- // noBorder
- // borderOnFocus={false}
- // ref={editorRef}
- // />
);
}}
/>
diff --git a/apps/app/components/pages/page-form.tsx b/apps/app/components/pages/page-form.tsx
index ff435d3e5..c4c669e1e 100644
--- a/apps/app/components/pages/page-form.tsx
+++ b/apps/app/components/pages/page-form.tsx
@@ -1,7 +1,5 @@
import { useEffect } from "react";
-import dynamic from "next/dynamic";
-
// react-hook-form
import { useForm } from "react-hook-form";
// ui
@@ -16,16 +14,6 @@ type Props = {
data?: IPage | null;
};
-// rich-text-editor
-// const RemirrorRichTextEditor = dynamic(() => import("components/rich-text-editor"), {
-// ssr: false,
-// loading: () => (
-//
-//
-//
-// ),
-// });
-
const defaultValues = {
name: "",
description: "",
diff --git a/apps/app/components/pages/single-page-block.tsx b/apps/app/components/pages/single-page-block.tsx
index 6ecf98ba5..8a13e3ea1 100644
--- a/apps/app/components/pages/single-page-block.tsx
+++ b/apps/app/components/pages/single-page-block.tsx
@@ -19,7 +19,6 @@ import useOutsideClickDetector from "hooks/use-outside-click-detector";
// components
import { GptAssistantModal } from "components/core";
import { CreateUpdateBlockInline } from "components/pages";
-// import RemirrorRichTextEditor, { IRemirrorRichTextEditor } from "components/rich-text-editor";
// ui
import { CustomMenu, TextArea } from "components/ui";
// icons
@@ -49,12 +48,6 @@ type Props = {
user: ICurrentUserResponse | undefined;
};
-// const WrappedRemirrorRichTextEditor = React.forwardRef<
-// IRemirrorRichTextEditor,
-// IRemirrorRichTextEditor
-// >((props, ref) => );
-
-// WrappedRemirrorRichTextEditor.displayName = "WrappedRemirrorRichTextEditor";
const TiptapEditor = React.forwardRef<
ITiptapRichTextEditor,
ITiptapRichTextEditor