Clean up utils

This commit is contained in:
Manav Rathi 2024-03-28 17:10:48 +05:30
parent 713a0038f0
commit ac01f7a12a
No known key found for this signature in database
8 changed files with 5 additions and 7 deletions

View file

@ -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 <Container>{constants.NOT_FOUND}</Container>;

View file

@ -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) {

View file

@ -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);

View file

@ -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) => {

View file

@ -1,3 +0,0 @@
export function runningInBrowser() {
return typeof window !== "undefined";
}

View file

@ -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;