mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
hotfix: Remove external link in billing settings UI (#6841)
This commit is contained in:
parent
74c942c911
commit
f869ad995c
@ -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();
|
||||
|
||||
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user