mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
deprecated: alert - delete payment method modal (#31007)
switch to admonition
This commit is contained in:
1 parent
80bdd361c1
commit
1ac639845c
1 file changed
+7
-4
+7
-4
@@ -1,9 +1,10 @@
|
||||
import { useParams } from 'common'
|
||||
import { toast } from 'sonner'
|
||||
import { Alert, Button, Modal } from 'ui'
|
||||
import { Button, Modal } from 'ui'
|
||||
|
||||
import { useOrganizationPaymentMethodDeleteMutation } from 'data/organizations/organization-payment-method-delete-mutation'
|
||||
import type { OrganizationPaymentMethod } from 'data/organizations/organization-payment-methods-query'
|
||||
import { Admonition } from 'ui-patterns'
|
||||
|
||||
export interface DeletePaymentMethodModalProps {
|
||||
selectedPaymentMethod?: OrganizationPaymentMethod
|
||||
@@ -55,9 +56,11 @@ const DeletePaymentMethodModal = ({
|
||||
}
|
||||
>
|
||||
<Modal.Content>
|
||||
<Alert withIcon variant="info" title="This will permanently delete your payment method.">
|
||||
<p>You can re-add the payment method any time.</p>
|
||||
</Alert>
|
||||
<Admonition
|
||||
type="default"
|
||||
title="This will permanently delete your payment method."
|
||||
description="You can re-add the payment method any time."
|
||||
/>
|
||||
</Modal.Content>
|
||||
</Modal>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user