From 03e138ba585c12a2dbe8ddb6a12a43c0a174e255 Mon Sep 17 00:00:00 2001
From: amanape <83104063+amanape@users.noreply.github.com>
Date: Mon, 30 Dec 2024 19:15:28 +0400
Subject: [PATCH] UI stuff
---
.../shared/inputs/api-key-input.tsx | 24 +++++++++++++------
.../shared/modals/settings/settings-form.tsx | 2 +-
.../src/hooks/mutation/use-save-settings.ts | 4 ++--
frontend/src/hooks/query/use-settings.ts | 5 ++--
frontend/tests/settings.spec.ts | 2 +-
openhands/server/routes/settings.py | 2 +-
6 files changed, 25 insertions(+), 14 deletions(-)
diff --git a/frontend/src/components/shared/inputs/api-key-input.tsx b/frontend/src/components/shared/inputs/api-key-input.tsx
index ea6e553adbe9..7bdafb90bd1e 100644
--- a/frontend/src/components/shared/inputs/api-key-input.tsx
+++ b/frontend/src/components/shared/inputs/api-key-input.tsx
@@ -1,27 +1,37 @@
-import { Input } from "@nextui-org/react";
+import { Input, Tooltip } from "@nextui-org/react";
import { useTranslation } from "react-i18next";
+import { FaCheckCircle, FaExclamationCircle } from "react-icons/fa";
import { I18nKey } from "#/i18n/declaration";
interface APIKeyInputProps {
isDisabled: boolean;
- defaultValue: string;
+ isSet: boolean;
}
-export function APIKeyInput({ isDisabled, defaultValue }: APIKeyInputProps) {
+export function APIKeyInput({ isDisabled, isSet }: APIKeyInputProps) {
const { t } = useTranslation();
return (