Skip to content

Commit

Permalink
Fix export
Browse files Browse the repository at this point in the history
  • Loading branch information
timuric committed Aug 21, 2024
1 parent 89c9958 commit c2a1c0d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/api/demo-payment/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DEMO_PAYMENT_GATEWAY } from "@/checkout/sections/PaymentSection/Demo/PaymentOptions";
import { DEMO_PAYMENT_GATEWAY } from "@/checkout/sections/PaymentSection/Demo/metadata";

const removeWhiteSpace = (str: string): string => {
return str.replaceAll(/[\t\n]+/g, " ");
Expand Down
3 changes: 1 addition & 2 deletions src/checkout/sections/PaymentSection/Demo/PaymentOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { useCheckoutCompleteMutation, useTransactionInitializeMutation } from "@
import { useCheckout } from "@/checkout/hooks/useCheckout";
import { replaceUrl } from "@/checkout/lib/utils/url";
import { Button } from "@/checkout/components";

export const DEMO_PAYMENT_GATEWAY = `storefront.demo-payment`;
import { DEMO_PAYMENT_GATEWAY } from "@/checkout/sections/PaymentSection/Demo/metadata";

export const DemoPayment = () => {
const { checkout } = useCheckout();
Expand Down
1 change: 1 addition & 0 deletions src/checkout/sections/PaymentSection/Demo/metadata.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const DEMO_PAYMENT_GATEWAY = `storefront.demo-payment`;
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useCheckout } from "@/checkout/hooks/useCheckout";
import { useSubmit } from "@/checkout/hooks/useSubmit";
import { type MightNotExist } from "@/checkout/lib/globalTypes";
import { type ParsedPaymentGateways } from "@/checkout/sections/PaymentSection/types";
import { DEMO_PAYMENT_GATEWAY } from "@/checkout/sections/PaymentSection/Demo/PaymentOptions";
import { DEMO_PAYMENT_GATEWAY } from "@/checkout/sections/PaymentSection/Demo/metadata";

export const usePaymentGatewaysInitialize = () => {
const {
Expand Down

0 comments on commit c2a1c0d

Please sign in to comment.