From 8e1d04f5c151510d2ba7e8039533a58bbfd006a3 Mon Sep 17 00:00:00 2001 From: Baptiste POULAIN Date: Thu, 7 Dec 2023 18:09:30 +0100 Subject: [PATCH] bugfix(docs_links): reverse tsx to jsx --- .../src/components/MarkDown/{index.tsx => index.jsx} | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) rename packages/bruno-app/src/components/MarkDown/{index.tsx => index.jsx} (71%) 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 700db5d4..707265c3 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 || '');