diff --git a/gui/src/components/Footer.tsx b/gui/src/components/Footer.tsx index 21b9df4f6..0c094155c 100644 --- a/gui/src/components/Footer.tsx +++ b/gui/src/components/Footer.tsx @@ -11,7 +11,7 @@ import { defaultModelSelector } from "../redux/selectors/modelSelectors"; import { RootState } from "../redux/store"; import { FREE_TRIAL_LIMIT_REQUESTS } from "../util/freeTrial"; import { ROUTES } from "../util/navigation"; -import ButtonWithTooltip from "./ButtonWithTooltip"; +import HeaderButtonWithToolTip from "./gui/HeaderButtonWithToolTip"; import FreeTrialProgressBar from "./loaders/FreeTrialProgressBar"; import ProfileSwitcher from "./ProfileSwitcher"; @@ -60,30 +60,30 @@ function Footer() {
+
Quickly get up and running using our API keys. After this trial, we'll help you set up your own models.
-+
To prevent abuse, we'll ask you to sign in to GitHub.
diff --git a/gui/src/components/ProfileSwitcher.tsx b/gui/src/components/ProfileSwitcher.tsx index f4bfde1cc..4fe8bd72d 100644 --- a/gui/src/components/ProfileSwitcher.tsx +++ b/gui/src/components/ProfileSwitcher.tsx @@ -24,7 +24,7 @@ import { useWebviewListener } from "../hooks/useWebviewListener"; import { setLastControlServerBetaEnabledStatus } from "../redux/slices/miscSlice"; import { RootState } from "../redux/store"; import { getFontSize } from "../util"; -import ButtonWithTooltip from "./ButtonWithTooltip"; +import HeaderButtonWithToolTip from "./gui/HeaderButtonWithToolTip"; const StyledListbox = styled(Listbox)` background-color: ${vscBackground}; @@ -247,7 +247,7 @@ function ProfileSwitcher() { {controlServerBetaEnabled && (session?.account ? ( -
diff --git a/gui/src/components/ButtonWithTooltip.tsx b/gui/src/components/gui/HeaderButtonWithToolTip.tsx
similarity index 80%
rename from gui/src/components/ButtonWithTooltip.tsx
rename to gui/src/components/gui/HeaderButtonWithToolTip.tsx
index cf3cb9275..4a64c6283 100644
--- a/gui/src/components/ButtonWithTooltip.tsx
+++ b/gui/src/components/gui/HeaderButtonWithToolTip.tsx
@@ -1,10 +1,10 @@
import React from "react";
import { type PlacesType } from "react-tooltip";
-import { HeaderButton } from ".";
+import { HeaderButton } from "..";
import { v4 as uuidv4 } from "uuid";
-import { ToolTip } from "./gui/Tooltip";
+import { ToolTip } from "./Tooltip";
-interface HeaderButtonWithTextProps {
+interface HeaderButtonWithToolTipProps {
text: string | undefined;
onClick?: (e: any) => void;
children: React.ReactNode;
@@ -20,10 +20,10 @@ interface HeaderButtonWithTextProps {
tooltipPlacement?: PlacesType;
}
-const ButtonWithTooltip = React.forwardRef<
+const HeaderButtonWithToolTip = React.forwardRef<
HTMLButtonElement,
- HeaderButtonWithTextProps
->((props: HeaderButtonWithTextProps, ref) => {
+ HeaderButtonWithToolTipProps
+>((props: HeaderButtonWithToolTipProps, ref) => {
const id = uuidv4();
const tooltipId = `header_button_${id}`;
@@ -52,4 +52,4 @@ const ButtonWithTooltip = React.forwardRef<
);
});
-export default ButtonWithTooltip;
+export default HeaderButtonWithToolTip;
diff --git a/gui/src/components/gui/StepContainer.tsx b/gui/src/components/gui/StepContainer.tsx
index c2a4310cf..b156f6c1f 100644
--- a/gui/src/components/gui/StepContainer.tsx
+++ b/gui/src/components/gui/StepContainer.tsx
@@ -14,7 +14,7 @@ import { IdeMessengerContext } from "../../context/IdeMessenger";
import useUIConfig from "../../hooks/useUIConfig";
import { RootState } from "../../redux/store";
import { getFontSize } from "../../util";
-import ButtonWithTooltip from "../ButtonWithTooltip";
+import HeaderButtonWithToolTip from "./HeaderButtonWithToolTip";
import StyledMarkdownPreview from "../markdown/StyledMarkdownPreview";
import { CopyIconButton } from "./CopyIconButton";
@@ -116,23 +116,23 @@ function StepContainer(props: StepContainerProps) {
}}
>
{truncatedEarly && (
-
-
+
)}
{props.index !== 1 && (
-
-
+
)}
- sendFeedback(true)}
@@ -150,9 +150,9 @@ function StepContainer(props: StepContainerProps) {
-
+
- sendFeedback(false)}
@@ -160,7 +160,7 @@ function StepContainer(props: StepContainerProps) {
-
+
{props.description}
@@ -164,9 +162,9 @@ function ModelCard(props: ModelCardProps) { href={props.refUrl} target="_blank" > -{dimension.name}
+{dimension.name}