diff --git a/web/apps/payments/src/pages/404.tsx b/web/apps/payments/src/pages/404.tsx index 17911a7fc6e05787c864b2dbe7505df08969a5ba..4e1bd8f26021d82016a14973aeec69d119eba2b2 100644 --- a/web/apps/payments/src/pages/404.tsx +++ b/web/apps/payments/src/pages/404.tsx @@ -1,5 +1,5 @@ import { Container } from "components/Container"; -import constants from "utils/strings/constants"; +import constants from "utils/strings"; export default function Home() { return {constants.NOT_FOUND}; diff --git a/web/apps/payments/src/pages/_app.tsx b/web/apps/payments/src/pages/_app.tsx index 17db6086b251da8ea1dccd7fe50b604f85a49d31..c60a2073c146995db523aa5d25260205feae7158 100644 --- a/web/apps/payments/src/pages/_app.tsx +++ b/web/apps/payments/src/pages/_app.tsx @@ -1,7 +1,7 @@ import "bootstrap/dist/css/bootstrap.min.css"; import type { AppProps } from "next/app"; import Head from "next/head"; -import constants from "utils/strings/constants"; +import constants from "utils/strings"; import "../styles/globals.css"; function MyApp({ Component, pageProps }: AppProps) { diff --git a/web/apps/payments/src/pages/index.tsx b/web/apps/payments/src/pages/index.tsx index b4aad2a0e22af00d2786342cf59f92a15c1983b2..6915807938b87163f189325dfc3d943bca2b6c71 100644 --- a/web/apps/payments/src/pages/index.tsx +++ b/web/apps/payments/src/pages/index.tsx @@ -3,7 +3,7 @@ import EnteSpinner from "components/EnteSpinner"; import * as React from "react"; import { parseAndHandleRequest } from "services/billingService"; import { CUSTOM_ERROR } from "utils/error"; -import constants from "utils/strings/constants"; +import constants from "utils/strings"; export default function Home() { const [errorMessageView, setErrorMessageView] = React.useState(false); diff --git a/web/apps/payments/src/services/billingService.ts b/web/apps/payments/src/services/billingService.ts index c7a6a17e9432c5eec5a6a4e64222fe12036f3bbc..9224129d3d06c45c520935c9be7a86d4004da95c 100644 --- a/web/apps/payments/src/services/billingService.ts +++ b/web/apps/payments/src/services/billingService.ts @@ -8,7 +8,7 @@ import { loadStripe } from "@stripe/stripe-js"; import { CUSTOM_ERROR } from "utils/error"; -import { logError } from "utils/sentry"; +import { logError } from "utils/log"; import HTTPService from "./HTTPService"; const getStripePublishableKey = (stripeAccount: StripeAccountCountry) => { diff --git a/web/apps/payments/src/utils/common.ts b/web/apps/payments/src/utils/common.ts deleted file mode 100644 index 7796b130362e06bfd14d654f3d192c13620acb71..0000000000000000000000000000000000000000 --- a/web/apps/payments/src/utils/common.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function runningInBrowser() { - return typeof window !== "undefined"; -} diff --git a/web/apps/payments/src/utils/error/index.ts b/web/apps/payments/src/utils/error.ts similarity index 100% rename from web/apps/payments/src/utils/error/index.ts rename to web/apps/payments/src/utils/error.ts diff --git a/web/apps/payments/src/utils/sentry/index.ts b/web/apps/payments/src/utils/log.ts similarity index 100% rename from web/apps/payments/src/utils/sentry/index.ts rename to web/apps/payments/src/utils/log.ts diff --git a/web/apps/payments/src/utils/strings/constants.tsx b/web/apps/payments/src/utils/strings.ts similarity index 99% rename from web/apps/payments/src/utils/strings/constants.tsx rename to web/apps/payments/src/utils/strings.ts index e08c6d558d3566320e739d28257af45913bb31d6..44ba64b8feb3847544f88a9399d4edcb6b3b0a50 100644 --- a/web/apps/payments/src/utils/strings/constants.tsx +++ b/web/apps/payments/src/utils/strings.ts @@ -3,4 +3,5 @@ const englishConstants = { SOMETHING_WENT_WRONG: "Oops, something went wrong.", NOT_FOUND: "404 | This page could not be found.", }; + export default englishConstants;