Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(pay): consistent filename #4025

Merged
merged 2 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/pay/app/[username]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"

import UsernameLayoutContainer from "@/components/Layouts/UsernameLayout"
import UsernameLayoutContainer from "@/components/layouts/username-layout"

export default function UsernameLayout({
children,
Expand Down
8 changes: 4 additions & 4 deletions apps/pay/app/[username]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ import { gql } from "@apollo/client"

import { useSearchParams } from "next/navigation"

import ParsePayment from "../../components/ParsePOSPayment"
import PinToHomescreen from "../../components/PinToHomescreen"
import ParsePayment from "../../components/parse-pos-payment"
import PinToHomescreen from "../../components/pin-to-homescreen"

import CurrencyDropdown from "../../components/Currency/currency-dropdown"
import CurrencyDropdown from "../../components/currency/currency-dropdown"

import { useAccountDefaultWalletsQuery } from "../../lib/graphql/generated"

import reducer, { ACTIONS } from "../reducer"

import styles from "./username.module.css"

import LoadingComponent from "@/components/Loading"
import LoadingComponent from "@/components/loading"
import { extractSearchParams } from "@/utils/utils"

gql`
Expand Down
2 changes: 1 addition & 1 deletion apps/pay/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { gql, useQuery } from "@apollo/client"

import { useRouter } from "next/navigation"

import CurrencyDropdown from "../components/Currency/currency-dropdown"
import CurrencyDropdown from "../components/currency/currency-dropdown"
import { getClientSideGqlConfig } from "../config/config"

const GET_NODE_STATS = gql`
Expand Down
2 changes: 1 addition & 1 deletion apps/pay/app/setuppwa/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { useRouter } from "next/navigation"
import React, { Suspense, useEffect, useState } from "react"

import CurrencyDropdown from "../../components/Currency/currency-dropdown"
import CurrencyDropdown from "../../components/currency/currency-dropdown"

const SetupPwa = () => {
const router = useRouter()
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ import {
getLocaleConfig,
extractSearchParams,
} from "../../utils/utils"
import Memo from "../Memo"
import Memo from "../memo"

import { useDisplayCurrency } from "../../lib/use-display-currency"

import { Currency } from "../../lib/graphql/generated"

import DigitButton from "./Digit-Button"
import DigitButton from "./digit-button"
import styles from "./parse-payment.module.css"
import ReceiveInvoice from "./Receive-Invoice"
import ReceiveInvoice from "./receive-invoice"

function isRunningStandalone() {
if (typeof window === "undefined") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ import { QRCode } from "react-qrcode-logo"
import { useScreenshot } from "use-react-screenshot"

import { USD_INVOICE_EXPIRE_INTERVAL, getClientSidePayDomain } from "../../config/config"
import useCreateInvoice from "../../hooks/use-Create-Invoice"
import { LnInvoiceObject } from "../../lib/graphql/index.types.d"
import useCreateInvoice from "../../hooks/use-create-Invoice"
import { LnInvoiceObject } from "../../lib/graphql/index.types"
import useSatPrice from "../../lib/use-sat-price"
import { ACTION_TYPE } from "../../app/reducer"
import PaymentOutcome from "../PaymentOutcome"
import { Share } from "../Share"
import PaymentOutcome from "../payment-outcome"
import { Share } from "../share"

import { extractSearchParams, safeAmount } from "../../utils/utils"

import LoadingComponent from "../Loading"
import LoadingComponent from "../loading"

import styles from "./parse-payment.module.css"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React from "react"
import Image from "react-bootstrap/Image"

import { formattedDate, formattedTime } from "../../utils/dateUtil"
import { formattedDate, formattedTime } from "../../utils/date-util"

import GaloyIcon from "./galoy-icon"
import styles from "./payment-outcome.module.css"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import { Image } from "react-bootstrap"

import { getOS } from "../../lib/download"
import { ACTIONS, ACTION_TYPE } from "../../app/reducer"
import Modal from "../CustomModal/modal"
import Modal from "../custom-modal/modal"

import {
chromeModalContent,
desktopIosModalContent,
iosModalContent,
mobileChromeModalContent,
} from "./browser-modal-content"
import styles from "./pinToHomescreen.module.css"
import styles from "./pin-to-homescreen.module.css"

interface Props {
pinnedToHomeScreenModalVisible: boolean
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions apps/pay/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

// eslint-disable-next-line @typescript-eslint/no-namespace

// eslint-disable-next-line @typescript-eslint/no-namespace
declare namespace Cypress {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface Chainable<Subject> {
Expand Down
File renamed without changes.
Loading