chore: fixed a few destructive buttons (#15990)

This commit is contained in:
Peer Richelsen
2024-07-30 16:24:11 +03:00
committed by GitHub
parent b8ba95dbb0
commit 1a8492b9c2
2 changed files with 4 additions and 9 deletions
@@ -148,11 +148,7 @@ export const OAuthClientCard = ({
onClick={() => router.push(`/settings/platform/oauth-clients/${id}/edit`)}>
Edit
</Button>
<Button
className="bg-red-500 text-white hover:bg-red-600"
loading={isLoading}
disabled={isLoading}
onClick={() => onDelete(id)}>
<Button color="destructive" loading={isLoading} disabled={isLoading} onClick={() => onDelete(id)}>
Delete
</Button>
</div>
@@ -641,8 +641,7 @@ const ProfileForm = ({
{showRemoveAvatarButton && (
<Button
color="secondary"
className="hover:bg-red-600"
color="destructive"
onClick={() => {
onChange(null);
}}>
@@ -717,8 +716,8 @@ const ProfileForm = ({
<span className="text-default ml-2 text-sm">{user.identityProviderEmail}</span>
)}
<div className="flex flex-1 justify-end">
<Button color="destructive" onClick={onDisconnect} size="sm">
Disconnect
<Button color="destructive" onClick={onDisconnect}>
{t("disconnect")}
</Button>
</div>
</div>