diff --git a/src/components/features/backends/backend-form-modal.tsx b/src/components/features/backends/backend-form-modal.tsx index 49496523..0ce99982 100644 --- a/src/components/features/backends/backend-form-modal.tsx +++ b/src/components/features/backends/backend-form-modal.tsx @@ -1,7 +1,6 @@ import React from "react"; import { useQuery } from "@tanstack/react-query"; import { useTranslation } from "react-i18next"; -import { X } from "lucide-react"; import { ServerClient } from "@openhands/typescript-client/clients"; import OpenHandsLogoWhite from "#/assets/branding/openhands-logo-white.svg?react"; import { ModalBackdrop } from "#/components/shared/modals/modal-backdrop"; @@ -9,7 +8,7 @@ import { MODAL_MAX_WIDTH_VIEWPORT, modalWidthClassName, } from "#/components/shared/modals/modal-body"; -import { BaseModalTitle } from "#/components/shared/modals/confirmation-modals/base-modal"; +import { ModalCloseButton } from "#/components/shared/modals/modal-close-button"; import { BrandButton } from "#/components/features/settings/brand-button"; import { SettingsInput } from "#/components/features/settings/settings-input"; import { useActiveBackendContext } from "#/contexts/active-backend-context"; @@ -22,9 +21,6 @@ import { cn } from "#/utils/utils"; import { BackendStatusDot } from "./backend-status-dot"; import { DeviceFlowAuth } from "./device-flow-auth"; -const ICON_BUTTON_CLASS = - "rounded-md p-1 text-white hover:bg-tertiary cursor-pointer"; - export type BackendFormMode = "add" | "edit"; interface BackendFormModalProps { @@ -606,23 +602,17 @@ export function BackendFormModal({
{message}
} diff --git a/src/components/features/mcp-page/install-server-modal.tsx b/src/components/features/mcp-page/install-server-modal.tsx index 0bafe174..13259b5b 100644 --- a/src/components/features/mcp-page/install-server-modal.tsx +++ b/src/components/features/mcp-page/install-server-modal.tsx @@ -1,7 +1,6 @@ import React from "react"; import { useTranslation } from "react-i18next"; import { AxiosError } from "axios"; -import { X } from "lucide-react"; import { ModalBackdrop } from "#/components/shared/modals/modal-backdrop"; import { ModalCloseButton } from "#/components/shared/modals/modal-close-button"; import { BrandButton } from "#/components/features/settings/brand-button"; @@ -14,9 +13,6 @@ import { useAddMcpServer } from "#/hooks/mutation/use-add-mcp-server"; import { displaySuccessToast } from "#/utils/custom-toast-handlers"; import { retrieveAxiosErrorMessage } from "#/utils/retrieve-axios-error-message"; -const ICON_BUTTON_CLASS = - "rounded-md p-1 text-white hover:bg-tertiary cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed"; - interface InstallServerModalProps { entry: MarketplaceEntry; onClose: () => void; @@ -286,16 +282,6 @@ export function InstallServerModal({{entry.description}