Skip to content

Commit

Permalink
Remove redundant query loader messages
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNeshi committed Dec 21, 2023
1 parent b2b0945 commit bafaf1a
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/components/donation/Steps/DonateMethods/Stripe/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ import { useErrorContext } from "contexts/ErrorContext";
import { Currency } from "components/CurrencySelector";
import ExtLink from "components/ExtLink";
import LoadText from "components/LoadText";
import LoaderRing from "components/LoaderRing";
import QueryLoader from "components/QueryLoader";
import Split from "components/Split";
import { ErrorStatus } from "components/Status";
import { CheckField, Field } from "components/form";
import { requiredString } from "schemas/string";
import { GENERIC_ERROR_MESSAGE } from "constants/common";
Expand Down Expand Up @@ -46,17 +44,7 @@ export default function Form(props: FormProps) {
return (
<QueryLoader
queryState={queryState}
classes={{ container: "grid h-full w-full" }}
messages={{
loading: (
<LoaderRing thickness={10} classes="w-32 justify-self-center" />
),
error: (
<ErrorStatus classes="justify-self-center">
Failed to load banking application
</ErrorStatus>
),
}}
classes={{ container: "grid justify-center" }}
>
{(data) => (
<Content {...props} currencies={data.supported_payment_currencies} />
Expand Down

0 comments on commit bafaf1a

Please sign in to comment.