From 79261bf620cb909ea54e7e3b82655791d439eba2 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sat, 8 Jul 2023 15:13:45 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(SanitizedHTMLWrapper):=20add?= =?UTF-8?q?=20new=20component=20to=20safely=20render=20sanitized=20HTML=20?= =?UTF-8?q?content=20=F0=9F=90=9B=20fix(chatMessage):=20fix=20import=20pat?= =?UTF-8?q?h=20for=20SanitizedHTMLWrapper=20component=20=F0=9F=90=9B=20fix?= =?UTF-8?q?(formModal):=20fix=20import=20path=20for=20SanitizedHTMLWrapper?= =?UTF-8?q?=20component=20=F0=9F=90=9B=20fix(genericModal):=20fix=20import?= =?UTF-8?q?=20path=20for=20SanitizedHTMLWrapper=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/{SanitizedDiv => SanitizedHTMLWrapper}/index.tsx | 0 src/frontend/src/modals/chatModal/chatMessage/index.tsx | 2 +- src/frontend/src/modals/formModal/chatMessage/index.tsx | 2 +- src/frontend/src/modals/genericModal/index.tsx | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/frontend/src/components/{SanitizedDiv => SanitizedHTMLWrapper}/index.tsx (100%) diff --git a/src/frontend/src/components/SanitizedDiv/index.tsx b/src/frontend/src/components/SanitizedHTMLWrapper/index.tsx similarity index 100% rename from src/frontend/src/components/SanitizedDiv/index.tsx rename to src/frontend/src/components/SanitizedHTMLWrapper/index.tsx diff --git a/src/frontend/src/modals/chatModal/chatMessage/index.tsx b/src/frontend/src/modals/chatModal/chatMessage/index.tsx index 3a9749b72..8889e40a3 100644 --- a/src/frontend/src/modals/chatModal/chatMessage/index.tsx +++ b/src/frontend/src/modals/chatModal/chatMessage/index.tsx @@ -7,7 +7,7 @@ import remarkGfm from "remark-gfm"; import remarkMath from "remark-math"; import AiIcon from "../../../assets/Gooey Ring-5s-271px.svg"; import AiIconStill from "../../../assets/froze-flow.png"; -import SanitizedHTMLWrapper from "../../../components/SanitizedDiv"; +import SanitizedHTMLWrapper from "../../../components/SanitizedHTMLWrapper"; import { ChatMessageType } from "../../../types/chat"; import { classNames } from "../../../utils"; import { CodeBlock } from "../../formModal/chatMessage/codeBlock"; diff --git a/src/frontend/src/modals/formModal/chatMessage/index.tsx b/src/frontend/src/modals/formModal/chatMessage/index.tsx index 66981be5e..e12febc07 100644 --- a/src/frontend/src/modals/formModal/chatMessage/index.tsx +++ b/src/frontend/src/modals/formModal/chatMessage/index.tsx @@ -7,7 +7,7 @@ import remarkGfm from "remark-gfm"; import remarkMath from "remark-math"; import MaleTechnology from "../../../assets/male-technologist.png"; import Robot from "../../../assets/robot.png"; -import SanitizedHTMLWrapper from "../../../components/SanitizedDiv"; +import SanitizedHTMLWrapper from "../../../components/SanitizedHTMLWrapper"; import { THOUGHTS_ICON } from "../../../constants"; import { ChatMessageType } from "../../../types/chat"; import { classNames } from "../../../utils"; diff --git a/src/frontend/src/modals/genericModal/index.tsx b/src/frontend/src/modals/genericModal/index.tsx index efd7dcd22..0ae00ef2a 100644 --- a/src/frontend/src/modals/genericModal/index.tsx +++ b/src/frontend/src/modals/genericModal/index.tsx @@ -1,6 +1,6 @@ import { FileText, Variable } from "lucide-react"; import { useContext, useEffect, useRef, useState } from "react"; -import SanitizedHTMLWrapper from "../../components/SanitizedDiv"; +import SanitizedHTMLWrapper from "../../components/SanitizedHTMLWrapper"; import ShadTooltip from "../../components/ShadTooltipComponent"; import { Badge } from "../../components/ui/badge"; import { Button } from "../../components/ui/button";