diff --git a/packages/bruno-app/src/components/MarkDown/index.tsx b/packages/bruno-app/src/components/MarkDown/index.jsx similarity index 71% rename from packages/bruno-app/src/components/MarkDown/index.tsx rename to packages/bruno-app/src/components/MarkDown/index.jsx index 700db5d48..707265c39 100644 --- a/packages/bruno-app/src/components/MarkDown/index.tsx +++ b/packages/bruno-app/src/components/MarkDown/index.jsx @@ -1,17 +1,15 @@ -// @ts-ignore import MarkdownIt from 'markdown-it'; import StyledWrapper from './StyledWrapper'; import * as React from 'react'; const md = new MarkdownIt(); -const Markdown = ({ onDoubleClick, content }: { onDoubleClick: () => void; content?: string }) => { - const handleOnDoubleClick = (event: React.MouseEvent) => { +const Markdown = ({ onDoubleClick, content }) => { + const handleOnDoubleClick = (event) => { console.log(event); if (event?.detail === 2) { onDoubleClick(); } - return; }; const htmlFromMarkdown = md.render(content || '');