deprecated: alert - delete payment method modal (#31007)

switch to admonition
This commit is contained in:
hallidayo authored and GitHub committed 2024-12-23 10:14:15 -03:30
1 parent 80bdd361c1
commit 1ac639845c
1 file changed
+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>
)