Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

deprecated: alert - revoke app modal (#31143)

hallidayoccc2adb6a339
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/RevokeAppModal.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/RevokeAppModal.tsx
index ab655d88edd..8913dabe0d7 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/RevokeAppModal.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/RevokeAppModal.tsx
@@ -1,10 +1,11 @@
import { useParams } from 'common'
import { Lock } from 'lucide-react'
import { toast } from 'sonner'
-import { Alert, Modal } from 'ui'
+import { Modal } from 'ui'
import { useAuthorizedAppRevokeMutation } from 'data/oauth/authorized-app-revoke-mutation'
import type { AuthorizedApp } from 'data/oauth/authorized-apps-query'
+import { Admonition } from 'ui-patterns'
export interface RevokeAppModalProps {
selectedApp?: AuthorizedApp
@@ -37,10 +38,12 @@ const RevokeAppModal = ({ selectedApp, onClose }: RevokeAppModalProps) => {
onConfirm={onConfirmDelete}
>
<Modal.Content>
- <Alert withIcon variant="warning" title="This action cannot be undone">
- {selectedApp?.name} application will no longer have access to your organization's settings
- and projects.
- </Alert>
+ <Admonition
+ type="warning"
+ title="This action cannot be undone"
+ description={`${selectedApp?.name} application will no longer have access to your organization's settings
+ and projects.`}
+ />
</Modal.Content>
<Modal.Content>
<ul className="space-y-5">