Skip to content

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

deprecated: alert - delete app modal (#31008)

hallidayoed75f1524330
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/DeleteAppModal.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/DeleteAppModal.tsx
index 26c619e5633..e8472240b36 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/DeleteAppModal.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/DeleteAppModal.tsx
@@ -4,7 +4,8 @@ import { toast } from 'sonner'
import { useParams } from 'common'
import { useOAuthAppDeleteMutation } from 'data/oauth/oauth-app-delete-mutation'
import type { OAuthApp } from 'data/oauth/oauth-apps-query'
-import { Alert, Modal } from 'ui'
+import { Modal } from 'ui'
+import { Admonition } from 'ui-patterns'
export interface DeleteAppModalProps {
selectedApp?: OAuthApp
@@ -37,10 +38,12 @@ const DeleteAppModal = ({ selectedApp, onClose }: DeleteAppModalProps) => {
onConfirm={onConfirmDelete}
>
<Modal.Content>
- <Alert withIcon variant="warning" title="This action cannot be undone">
- Deleting {selectedApp?.name} will invalidate any access tokens from this application that
- were authorized by users.
- </Alert>
+ <Admonition
+ type="warning"
+ title="This action cannot be undone"
+ description={`Deleting ${selectedApp?.name} will invalidate any access tokens from this application that
+ were authorized by users.`}
+ />
</Modal.Content>
<Modal.Content>
<ul className="space-y-5">