Skip to content

Commit

Permalink
remove unused endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-justin committed Sep 14, 2024
1 parent 863e190 commit d46c94e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion src/pages/UserDashboard/Donations/PaymentResumer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function PaymentResumer({ paymentId, classes, amount }: Props) {
);
}

export function QrModal(props: Crypto.PaymentStatus & { orderAmount: number }) {
function QrModal(props: Crypto.PaymentStatus & { orderAmount: number }) {
const token = tokens[props.pay_currency.toUpperCase()];
return (
<Modal className="fixed-center z-10 grid text-navy-d4 dark:text-white bg-white dark:bg-blue-d4 sm:w-full w-[90vw] sm:max-w-lg rounded overflow-hidden px-4 py-8">
Expand Down
18 changes: 0 additions & 18 deletions src/services/apes/apes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ import type {
FiatCurrencyData,
GuestDonor,
PayPalOrder,
Token,
} from "types/aws";
import type { Chain } from "types/chain";
import type { DetailedCurrency } from "types/components";
import { version as v } from "../helpers";
import { tags } from "./tags";
Expand Down Expand Up @@ -54,17 +52,6 @@ export const apes = createApi({
}),
}
),
confirmCryptoIntent: builder.mutation<
{ guestDonor: GuestDonor },
{ txId: string; txHash: string }
>({
query: ({ txHash, txId }) => ({
url: `crypto-donation/${txId}/confirm`,
method: "POST",
headers: { authorization: TEMP_JWT },
body: JSON.stringify({ txHash }),
}),
}),
intent: builder.query<DonationIntent.ToResume, { transactionId: string }>({
query: (params) => ({ url: `donation-intents/${params.transactionId}` }),
}),
Expand Down Expand Up @@ -140,9 +127,6 @@ export const apes = createApi({
url: `stripe-proxy?payment_intent=${paymentIntentId}`,
}),
}),
tokens: builder.query<Token[], Chain.Id.All>({
query: (chainID) => `v1/tokens/${chainID}`,
}),
topCountries: builder.query<string[], unknown>({
query: () => "top-countries",
}),
Expand All @@ -152,15 +136,13 @@ export const apes = createApi({
export const {
useCapturePayPalOrderMutation,
useCreateCryptoIntentQuery,
useConfirmCryptoIntentMutation,
useLazyIntentQuery,
useFiatCurrenciesQuery,
useStripePaymentIntentQuery,
useLazyChariotGrantQuery,
usePaypalOrderMutation,
useEndowBalanceQuery,
useStripePaymentStatusQuery,
useTokensQuery,
useTopCountriesQuery,
util: {
invalidateTags: invalidateApesTags,
Expand Down

0 comments on commit d46c94e

Please sign in to comment.