diff --git a/apps/pay/app/lnurlp/[username]/callback/route.ts b/apps/pay/app/lnurlp/[username]/callback/route.ts index 38c59b59fb..bacafe0eb0 100644 --- a/apps/pay/app/lnurlp/[username]/callback/route.ts +++ b/apps/pay/app/lnurlp/[username]/callback/route.ts @@ -8,15 +8,15 @@ import { gql } from "@apollo/client" import Redis from "ioredis" -import { env } from "../../../../env" +import { env } from "@/env" import { AccountDefaultWalletDocument, AccountDefaultWalletQuery, LnInvoiceCreateOnBehalfOfRecipientDocument, LnInvoiceCreateOnBehalfOfRecipientMutation, -} from "../../../../lib/graphql/generated" -import { client } from "../graphql" -import { getOriginalRequestInfo } from "../../../../lib/utils" +} from "@/lib/graphql/generated" +import { client } from "@/app/lnurlp/[username]/graphql" +import { getOriginalRequestInfo } from "@/lib/utils" gql` mutation lnInvoiceCreateOnBehalfOfRecipient( diff --git a/apps/pay/app/lnurlp/[username]/route.ts b/apps/pay/app/lnurlp/[username]/route.ts index 148b473884..b6f3cfbef9 100644 --- a/apps/pay/app/lnurlp/[username]/route.ts +++ b/apps/pay/app/lnurlp/[username]/route.ts @@ -1,16 +1,16 @@ import { NextResponse } from "next/server" -import { env } from "../../../env" +import { env } from "@/env" import { AccountDefaultWalletDocument, AccountDefaultWalletQuery, RealtimePriceInitialDocument, RealtimePriceInitialQuery, -} from "../../../lib/graphql/generated" +} from "@/lib/graphql/generated" -import { getOriginalRequestInfo } from "../../../lib/utils" +import { getOriginalRequestInfo } from "@/lib/utils" -import { client } from "./graphql" +import { client } from "@/app/lnurlp/[username]/graphql" const COMMENT_SIZE = 2000 // 2000 characters max for GET diff --git a/apps/pay/components/parse-pos-payment/index.tsx b/apps/pay/components/parse-pos-payment/index.tsx index 8cbc2bd54b..56457decf0 100644 --- a/apps/pay/components/parse-pos-payment/index.tsx +++ b/apps/pay/components/parse-pos-payment/index.tsx @@ -5,21 +5,21 @@ import Image from "next/image" import CurrencyInput, { formatValue } from "react-currency-input-field" -import { ACTION_TYPE, ACTIONS } from "../../app/reducer" +import { ACTION_TYPE, ACTIONS } from "@/app/reducer" import { safeAmount, getLocaleConfig, extractSearchParams, parseDisplayCurrency, -} from "../../lib/utils" +} from "@/lib/utils" -import { useDisplayCurrency } from "../../hooks/use-display-currency" +import { useDisplayCurrency } from "@/hooks/use-display-currency" -import Memo from "../memo" +import Memo from "@/components/memo" -import DigitButton from "./digit-button" -import styles from "./parse-payment.module.css" -import ReceiveInvoice from "./receive-invoice" +import DigitButton from "@/components/parse-pos-payment/digit-button" +import styles from "@/components/parse-pos-payment/parse-payment.module.css" +import ReceiveInvoice from "@/components/parse-pos-payment/receive-invoice" import { satCurrencyMetadata } from "@/app/sats-currency-metadata" import useDynamicFontSize from "@/hooks/use-dynamic-font-size" diff --git a/apps/pay/components/parse-pos-payment/receive-invoice.tsx b/apps/pay/components/parse-pos-payment/receive-invoice.tsx index ccd867906c..c13a2cabda 100644 --- a/apps/pay/components/parse-pos-payment/receive-invoice.tsx +++ b/apps/pay/components/parse-pos-payment/receive-invoice.tsx @@ -9,20 +9,20 @@ import Tooltip from "react-bootstrap/Tooltip" import { QRCode } from "react-qrcode-logo" import { useScreenshot } from "use-react-screenshot" -import { USD_INVOICE_EXPIRE_INTERVAL } from "../../config/config" -import useCreateInvoice from "../../hooks/use-create-Invoice" -import { LnInvoiceObject } from "../../lib/graphql/index.types" -import useSatPrice from "../../hooks/use-sat-price" -import { ACTION_TYPE } from "../../app/reducer" -import PaymentOutcome from "../payment-outcome" -import { Share } from "../share" +import { USD_INVOICE_EXPIRE_INTERVAL } from "@/config/config" +import useCreateInvoice from "@/hooks/use-create-Invoice" +import { LnInvoiceObject } from "@/lib/graphql/index.types" +import useSatPrice from "@/hooks/use-sat-price" +import { ACTION_TYPE } from "@/app/reducer" +import PaymentOutcome from "@/components/payment-outcome" +import { Share } from "@/components/share" -import { extractSearchParams, safeAmount } from "../../lib/utils" +import { extractSearchParams, safeAmount } from "@/lib/utils" -import LoadingComponent from "../loading" +import LoadingComponent from "@/components/loading" -import styles from "./parse-payment.module.css" -import NFCComponent from "./nfc" +import styles from "@/components/parse-pos-payment/parse-payment.module.css" +import NFCComponent from "@/components/parse-pos-payment/nfc" import useRealtimePrice from "@/hooks/use-realtime-price" diff --git a/apps/pay/components/payment-outcome/receipt.tsx b/apps/pay/components/payment-outcome/receipt.tsx index 5b3b8b7ff0..c78b9b32b7 100644 --- a/apps/pay/components/payment-outcome/receipt.tsx +++ b/apps/pay/components/payment-outcome/receipt.tsx @@ -2,10 +2,10 @@ import React from "react" import Image from "react-bootstrap/Image" -import { formattedDate, formattedTime } from "../../lib/utils/date-util" +import GaloyIcon from "@/components/payment-outcome/galoy-icon" +import styles from "@/components/payment-outcome/payment-outcome.module.css" -import GaloyIcon from "./galoy-icon" -import styles from "./payment-outcome.module.css" +import { formattedDate, formattedTime } from "@/lib/utils/date-util" interface Props { amount: string | string[] | undefined diff --git a/apps/pay/hooks/use-realtime-price.tsx b/apps/pay/hooks/use-realtime-price.tsx index 61faaab610..66f0dc6940 100644 --- a/apps/pay/hooks/use-realtime-price.tsx +++ b/apps/pay/hooks/use-realtime-price.tsx @@ -5,8 +5,8 @@ import { RealtimePriceWsSubscription, useRealtimePriceInitialQuery, useRealtimePriceWsSubscription, -} from "../lib/graphql/generated" -import { useDisplayCurrency } from "../hooks/use-display-currency" +} from "@/lib/graphql/generated" +import { useDisplayCurrency } from "@/hooks/use-display-currency" gql` subscription realtimePriceWs($currency: DisplayCurrency!) {