Skip to content

πŸ™Œ OpenHands: AI-Driven Development

refactor(frontend): Make the API keys table styling consistent. (#9630)

Hiep Le5c27a452ac2d
diff --git a/frontend/src/components/features/settings/api-keys-manager.tsx b/frontend/src/components/features/settings/api-keys-manager.tsx
index dcefb5cd6e..9abc12de98 100644
--- a/frontend/src/components/features/settings/api-keys-manager.tsx
+++ b/frontend/src/components/features/settings/api-keys-manager.tsx
@@ -1,5 +1,6 @@
import React, { useState } from "react";
import { useTranslation, Trans } from "react-i18next";
+import { FaTrash } from "react-icons/fa6";
import { I18nKey } from "#/i18n/declaration";
import { BrandButton } from "#/components/features/settings/brand-button";
import { LoadingSpinner } from "#/components/shared/loading-spinner";
@@ -123,13 +124,14 @@ export function ApiKeysManager() {
<td className="p-3 text-right">
<button
type="button"
- className="underline"
onClick={() => {
setKeyToDelete(key);
setDeleteModalOpen(true);
}}
+ aria-label={`Delete ${key.name}`}
+ className="cursor-pointer"
>
- {t(I18nKey.BUTTON$DELETE)}
+ <FaTrash size={16} />
</button>
</td>
</tr>