diff --git a/apps/pay/app/[username]/layout.tsx b/apps/pay/app/[username]/layout.tsx index aabc381686..c76269ee53 100644 --- a/apps/pay/app/[username]/layout.tsx +++ b/apps/pay/app/[username]/layout.tsx @@ -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, diff --git a/apps/pay/app/[username]/page.tsx b/apps/pay/app/[username]/page.tsx index afe6bbd62d..101836d13e 100644 --- a/apps/pay/app/[username]/page.tsx +++ b/apps/pay/app/[username]/page.tsx @@ -10,10 +10,10 @@ 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" @@ -21,7 +21,7 @@ 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` diff --git a/apps/pay/app/page.tsx b/apps/pay/app/page.tsx index c93726f14f..97dd1388f9 100644 --- a/apps/pay/app/page.tsx +++ b/apps/pay/app/page.tsx @@ -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` diff --git a/apps/pay/app/setuppwa/page.tsx b/apps/pay/app/setuppwa/page.tsx index d321e4a9d2..dbc90e9dad 100644 --- a/apps/pay/app/setuppwa/page.tsx +++ b/apps/pay/app/setuppwa/page.tsx @@ -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() diff --git a/apps/pay/components/Currency/currency-dropdown.tsx b/apps/pay/components/currency/currency-dropdown.tsx similarity index 100% rename from apps/pay/components/Currency/currency-dropdown.tsx rename to apps/pay/components/currency/currency-dropdown.tsx diff --git a/apps/pay/components/CustomModal/modal.module.css b/apps/pay/components/custom-modal/modal.module.css similarity index 100% rename from apps/pay/components/CustomModal/modal.module.css rename to apps/pay/components/custom-modal/modal.module.css diff --git a/apps/pay/components/CustomModal/modal.tsx b/apps/pay/components/custom-modal/modal.tsx similarity index 100% rename from apps/pay/components/CustomModal/modal.tsx rename to apps/pay/components/custom-modal/modal.tsx diff --git a/apps/pay/components/Layouts/app-layout.module.css b/apps/pay/components/layouts/app-layout.module.css similarity index 100% rename from apps/pay/components/Layouts/app-layout.module.css rename to apps/pay/components/layouts/app-layout.module.css diff --git a/apps/pay/components/Layouts/UsernameLayout.tsx b/apps/pay/components/layouts/username-layout.tsx similarity index 100% rename from apps/pay/components/Layouts/UsernameLayout.tsx rename to apps/pay/components/layouts/username-layout.tsx diff --git a/apps/pay/components/Loading/index.tsx b/apps/pay/components/loading/index.tsx similarity index 100% rename from apps/pay/components/Loading/index.tsx rename to apps/pay/components/loading/index.tsx diff --git a/apps/pay/components/Loading/loading-component.module.css b/apps/pay/components/loading/loading-component.module.css similarity index 100% rename from apps/pay/components/Loading/loading-component.module.css rename to apps/pay/components/loading/loading-component.module.css diff --git a/apps/pay/components/Memo/index.tsx b/apps/pay/components/memo/index.tsx similarity index 100% rename from apps/pay/components/Memo/index.tsx rename to apps/pay/components/memo/index.tsx diff --git a/apps/pay/components/Memo/memo.module.css b/apps/pay/components/memo/memo.module.css similarity index 100% rename from apps/pay/components/Memo/memo.module.css rename to apps/pay/components/memo/memo.module.css diff --git a/apps/pay/components/ParsePOSPayment/Digit-Button.tsx b/apps/pay/components/parse-pos-payment/digit-button.tsx similarity index 100% rename from apps/pay/components/ParsePOSPayment/Digit-Button.tsx rename to apps/pay/components/parse-pos-payment/digit-button.tsx diff --git a/apps/pay/components/ParsePOSPayment/index.tsx b/apps/pay/components/parse-pos-payment/index.tsx similarity index 99% rename from apps/pay/components/ParsePOSPayment/index.tsx rename to apps/pay/components/parse-pos-payment/index.tsx index 99020c7911..04523d170e 100644 --- a/apps/pay/components/ParsePOSPayment/index.tsx +++ b/apps/pay/components/parse-pos-payment/index.tsx @@ -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") { diff --git a/apps/pay/components/ParsePOSPayment/parse-payment.module.css b/apps/pay/components/parse-pos-payment/parse-payment.module.css similarity index 100% rename from apps/pay/components/ParsePOSPayment/parse-payment.module.css rename to apps/pay/components/parse-pos-payment/parse-payment.module.css diff --git a/apps/pay/components/ParsePOSPayment/react-app-env.d.ts b/apps/pay/components/parse-pos-payment/react-app-env.d.ts similarity index 100% rename from apps/pay/components/ParsePOSPayment/react-app-env.d.ts rename to apps/pay/components/parse-pos-payment/react-app-env.d.ts diff --git a/apps/pay/components/ParsePOSPayment/Receive-Invoice.tsx b/apps/pay/components/parse-pos-payment/receive-invoice.tsx similarity index 97% rename from apps/pay/components/ParsePOSPayment/Receive-Invoice.tsx rename to apps/pay/components/parse-pos-payment/receive-invoice.tsx index a1aad52146..17283f788c 100644 --- a/apps/pay/components/ParsePOSPayment/Receive-Invoice.tsx +++ b/apps/pay/components/parse-pos-payment/receive-invoice.tsx @@ -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" diff --git a/apps/pay/components/PaymentOutcome/galoy-icon.tsx b/apps/pay/components/payment-outcome/galoy-icon.tsx similarity index 100% rename from apps/pay/components/PaymentOutcome/galoy-icon.tsx rename to apps/pay/components/payment-outcome/galoy-icon.tsx diff --git a/apps/pay/components/PaymentOutcome/index.tsx b/apps/pay/components/payment-outcome/index.tsx similarity index 100% rename from apps/pay/components/PaymentOutcome/index.tsx rename to apps/pay/components/payment-outcome/index.tsx diff --git a/apps/pay/components/PaymentOutcome/payment-outcome.module.css b/apps/pay/components/payment-outcome/payment-outcome.module.css similarity index 100% rename from apps/pay/components/PaymentOutcome/payment-outcome.module.css rename to apps/pay/components/payment-outcome/payment-outcome.module.css diff --git a/apps/pay/components/PaymentOutcome/receipt.tsx b/apps/pay/components/payment-outcome/receipt.tsx similarity index 97% rename from apps/pay/components/PaymentOutcome/receipt.tsx rename to apps/pay/components/payment-outcome/receipt.tsx index 0fbff9b03a..cac8f50e36 100644 --- a/apps/pay/components/PaymentOutcome/receipt.tsx +++ b/apps/pay/components/payment-outcome/receipt.tsx @@ -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" diff --git a/apps/pay/components/PinToHomescreen/browser-modal-content.ts b/apps/pay/components/pin-to-homescreen/browser-modal-content.ts similarity index 100% rename from apps/pay/components/PinToHomescreen/browser-modal-content.ts rename to apps/pay/components/pin-to-homescreen/browser-modal-content.ts diff --git a/apps/pay/components/PinToHomescreen/index.tsx b/apps/pay/components/pin-to-homescreen/index.tsx similarity index 98% rename from apps/pay/components/PinToHomescreen/index.tsx rename to apps/pay/components/pin-to-homescreen/index.tsx index 534f39f103..bc02f087b4 100644 --- a/apps/pay/components/PinToHomescreen/index.tsx +++ b/apps/pay/components/pin-to-homescreen/index.tsx @@ -3,7 +3,7 @@ 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, @@ -11,7 +11,7 @@ import { iosModalContent, mobileChromeModalContent, } from "./browser-modal-content" -import styles from "./pinToHomescreen.module.css" +import styles from "./pin-to-homescreen.module.css" interface Props { pinnedToHomeScreenModalVisible: boolean diff --git a/apps/pay/components/PinToHomescreen/pinToHomescreen.module.css b/apps/pay/components/pin-to-homescreen/pin-to-homescreen.module.css similarity index 100% rename from apps/pay/components/PinToHomescreen/pinToHomescreen.module.css rename to apps/pay/components/pin-to-homescreen/pin-to-homescreen.module.css diff --git a/apps/pay/components/Share/index.ts b/apps/pay/components/share/index.ts similarity index 100% rename from apps/pay/components/Share/index.ts rename to apps/pay/components/share/index.ts diff --git a/apps/pay/components/Share/share-controller.tsx b/apps/pay/components/share/share-controller.tsx similarity index 100% rename from apps/pay/components/Share/share-controller.tsx rename to apps/pay/components/share/share-controller.tsx diff --git a/apps/pay/components/Share/share-pop-up.tsx b/apps/pay/components/share/share-pop-up.tsx similarity index 100% rename from apps/pay/components/Share/share-pop-up.tsx rename to apps/pay/components/share/share-pop-up.tsx diff --git a/apps/pay/components/Share/share.module.css b/apps/pay/components/share/share.module.css similarity index 100% rename from apps/pay/components/Share/share.module.css rename to apps/pay/components/share/share.module.css diff --git a/apps/pay/components/Share/share.tsx b/apps/pay/components/share/share.tsx similarity index 100% rename from apps/pay/components/Share/share.tsx rename to apps/pay/components/share/share.tsx diff --git a/apps/pay/cypress/support/commands.ts b/apps/pay/cypress/support/commands.ts index 26dc2f1aca..0a09633957 100644 --- a/apps/pay/cypress/support/commands.ts +++ b/apps/pay/cypress/support/commands.ts @@ -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 { diff --git a/apps/pay/hooks/use-Create-Invoice.tsx b/apps/pay/hooks/use-create-Invoice.tsx similarity index 100% rename from apps/pay/hooks/use-Create-Invoice.tsx rename to apps/pay/hooks/use-create-Invoice.tsx diff --git a/apps/pay/utils/dateUtil.ts b/apps/pay/utils/date-util.ts similarity index 100% rename from apps/pay/utils/dateUtil.ts rename to apps/pay/utils/date-util.ts