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

This commit is contained in:
Hiep Le 2025-07-10 19:07:35 +07:00 committed by GitHub
parent 8cb1c738ff
commit 5c27a452ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>