Skip to content

Commit

Permalink
fix: file import
Browse files Browse the repository at this point in the history
  • Loading branch information
potts99 committed Jun 7, 2024
1 parent db130e8 commit 2b7108e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
5 changes: 0 additions & 5 deletions apps/client/components/TicketDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import moment from "moment";
import { useRouter } from "next/router";
import { Fragment, useEffect, useRef, useState, useMemo } from "react";
import { useQuery } from "react-query";
import renderHTML from "react-render-html";
// import TextAlign from '@tiptap/extension-text-align';
import { notifications } from "@mantine/notifications";
import { Text, Tooltip } from "@radix-ui/themes";
Expand All @@ -20,10 +19,6 @@ import { useDebounce } from "use-debounce";
import { BlockNoteEditor, PartialBlock } from "@blocknote/core";
import { BlockNoteView } from "@blocknote/mantine";

import "@blocknote/core/fonts/inter.css";
import "@blocknote/mantine/style.css";


import { useUser } from "../../store/session";

function classNames(...classes: any) {
Expand Down
4 changes: 1 addition & 3 deletions apps/client/pages/portal/ticket/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import moment from "moment";
import { useRouter } from "next/router";
import { Fragment, useEffect, useState } from "react";
import { useQuery } from "react-query";
import renderHTML from "react-render-html";
// import TextAlign from '@tiptap/extension-text-align';
import SubScript from "@tiptap/extension-subscript";
import Superscript from "@tiptap/extension-superscript";
Expand Down Expand Up @@ -411,7 +410,6 @@ export default function Ticket() {
<div className="">
{data.ticket.fromImap ? (
<div className="break-words bg-white rounded-md p-4 text-black">
{/* {renderHTML(data.ticket.detail)} */}
<Frame
className="min-h-[60vh] h-full w-full"
initialContent={data.ticket.detail}
Expand All @@ -420,7 +418,7 @@ export default function Ticket() {
</Frame>
</div>
) : (
<div className="">{renderHTML(data.ticket.detail)}</div>
<div className=""></div>
)}
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions apps/client/pages/ticket/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import dynamic from "next/dynamic";

import "@blocknote/core/fonts/inter.css";
import "@blocknote/mantine/style.css";

const Editor = dynamic(() => import("../../components/TicketDetails"), { ssr: false });

Expand Down

0 comments on commit 2b7108e

Please sign in to comment.