Skip to content

Commit

Permalink
chore(pay): using @ paths
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhart1o1 committed May 10, 2024
1 parent 5ef2e70 commit b6f2346
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 31 deletions.
8 changes: 4 additions & 4 deletions apps/pay/app/lnurlp/[username]/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
8 changes: 4 additions & 4 deletions apps/pay/app/lnurlp/[username]/route.ts
Original file line number Diff line number Diff line change
@@ -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

Expand Down
14 changes: 7 additions & 7 deletions apps/pay/components/parse-pos-payment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
22 changes: 11 additions & 11 deletions apps/pay/components/parse-pos-payment/receive-invoice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
6 changes: 3 additions & 3 deletions apps/pay/components/payment-outcome/receipt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions apps/pay/hooks/use-realtime-price.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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!) {
Expand Down

0 comments on commit b6f2346

Please sign in to comment.