Skip to content

πŸ™Œ OpenHands: AI-Driven Development

hotfix: Remove external link in billing settings UI (#6841)

sp.wackf869ad995cc9
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 && <LoadingSpinner size="small" />}
</div>
</div>
-
- <HelpLink
- testId="payment-methods-link"
- href="https://stripe.com/"
- text="Manage payment methods on"
- linkText="Stripe"
- />
</form>
);
}