diff --git a/frontend/src/components/PostCodeWindow.tsx b/frontend/src/components/PostCodeWindow.tsx index dff266ba..6cd01ef9 100644 --- a/frontend/src/components/PostCodeWindow.tsx +++ b/frontend/src/components/PostCodeWindow.tsx @@ -48,7 +48,7 @@ function PostCodeWindow({ : "border border-sky-500 text-sky-500 dark:text-white" }`} > - JavaScript + JS )} diff --git a/frontend/src/components/PostCodeWithPreview.tsx b/frontend/src/components/PostCodeWithPreview.tsx index 4c1e5a2f..46979bb9 100644 --- a/frontend/src/components/PostCodeWithPreview.tsx +++ b/frontend/src/components/PostCodeWithPreview.tsx @@ -3,6 +3,7 @@ import PostCodeWindow from "./PostCodeWindow"; import PostPreview from "./PostPreview"; import { Link } from "react-router-dom"; import toast from "react-hot-toast"; +import { FaRegCopy, FaRegEdit, FaRobot } from "react-icons/fa"; type Props = { id: string; @@ -26,7 +27,6 @@ const PostCodeWithPreview = ({ const [activeTab, setActiveTab] = useState<"html" | "js">("html"); const [isPreview, setIsPreview] = useState(false); - const handleCopy = () => { if (codeSnippet && activeTab === "html") { navigator.clipboard.writeText(codeSnippet); @@ -75,31 +75,39 @@ const PostCodeWithPreview = ({ {isOwner ? ( - Edit + + Edit ) : null} {showCustomizeAiOption && ( )} {!showTogether && ( )}