From f869ad995cc9e871ea59d99844c231e7bd035db4 Mon Sep 17 00:00:00 2001 From: "sp.wack" <83104063+amanape@users.noreply.github.com> Date: Thu, 20 Feb 2025 17:58:09 +0400 Subject: [PATCH] hotfix: Remove external link in billing settings UI (#6841) --- .../components/features/payment/payment-form.test.tsx | 6 ------ frontend/src/components/features/payment/payment-form.tsx | 8 -------- 2 files changed, 14 deletions(-) diff --git a/frontend/__tests__/components/features/payment/payment-form.test.tsx b/frontend/__tests__/components/features/payment/payment-form.test.tsx index 815d0530d1..3235976939 100644 --- a/frontend/__tests__/components/features/payment/payment-form.test.tsx +++ b/frontend/__tests__/components/features/payment/payment-form.test.tsx @@ -78,12 +78,6 @@ describe("PaymentForm", () => { expect(createCheckoutSessionSpy).toHaveBeenCalledWith(50.13); }); - it("should render the payment method link", async () => { - renderPaymentForm(); - - screen.getByTestId("payment-methods-link"); - }); - it("should disable the top-up button if the user enters an invalid amount", async () => { const user = userEvent.setup(); renderPaymentForm(); diff --git a/frontend/src/components/features/payment/payment-form.tsx b/frontend/src/components/features/payment/payment-form.tsx index e42a9e7894..db57a36672 100644 --- a/frontend/src/components/features/payment/payment-form.tsx +++ b/frontend/src/components/features/payment/payment-form.tsx @@ -5,7 +5,6 @@ import { cn } from "#/utils/utils"; import MoneyIcon from "#/icons/money.svg?react"; import { SettingsInput } from "../settings/settings-input"; import { BrandButton } from "../settings/brand-button"; -import { HelpLink } from "../settings/help-link"; import { LoadingSpinner } from "#/components/shared/loading-spinner"; import { amountIsValid } from "#/utils/amount-is-valid"; @@ -80,13 +79,6 @@ export function PaymentForm() { {isPending && } - - ); }