diff --git a/src/frontend/src/components/codeTabsComponent/index.tsx b/src/frontend/src/components/codeTabsComponent/index.tsx index 3550f70ea29..83a3fb8bd35 100644 --- a/src/frontend/src/components/codeTabsComponent/index.tsx +++ b/src/frontend/src/components/codeTabsComponent/index.tsx @@ -2,7 +2,10 @@ import ShadTooltip from "@/components/shadTooltipComponent"; import { useTweaksStore } from "@/stores/tweaksStore"; import { useState } from "react"; import { Prism as SyntaxHighlighter } from "react-syntax-highlighter"; -import { tomorrow, oneDark } from "react-syntax-highlighter/dist/cjs/styles/prism"; +import { + oneDark, + tomorrow, +} from "react-syntax-highlighter/dist/cjs/styles/prism"; import { Tabs, TabsContent, @@ -84,14 +87,14 @@ export default function CodeTabsComponent({ key={idx} // Remember to add a unique key prop > {tab.name.toLowerCase() !== "tweaks" ? ( -
+
{tab.description && (
)} -
+
{nodes.length > 0 && tabs.find((tab) => tab.name.toLowerCase() === "tweaks") && tabs[activeTab].hasTweaks && ( @@ -119,9 +122,7 @@ export default function CodeTabsComponent({ checked={activeTweaks} autoFocus={false} /> - - | - + |
)} @@ -134,9 +135,15 @@ export default function CodeTabsComponent({ data-testid="btn-copy-code" > {isCopied ? ( - + ) : ( - + )} @@ -145,7 +152,7 @@ export default function CodeTabsComponent({ {tab.code}