From 2504046e26b179711c42196d8a234f41801f77e3 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 23 May 2024 12:10:23 +0530 Subject: [PATCH] Move --- web/apps/auth/src/components/OTPDisplay.tsx | 0 web/apps/auth/src/pages/auth.tsx | 4 ++-- web/apps/auth/src/{types => services}/code.ts | 0 web/apps/auth/src/services/{index.ts => remote.ts} | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 web/apps/auth/src/components/OTPDisplay.tsx rename web/apps/auth/src/{types => services}/code.ts (100%) rename web/apps/auth/src/services/{index.ts => remote.ts} (99%) diff --git a/web/apps/auth/src/components/OTPDisplay.tsx b/web/apps/auth/src/components/OTPDisplay.tsx deleted file mode 100644 index e69de29bb..000000000 diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsx index ad614c2f4..c8e5166cf 100644 --- a/web/apps/auth/src/pages/auth.tsx +++ b/web/apps/auth/src/pages/auth.tsx @@ -18,8 +18,8 @@ import { useRouter } from "next/router"; import { HOTP, TOTP } from "otpauth"; import { AppContext } from "pages/_app"; import React, { useContext, useEffect, useState } from "react"; -import { getAuthCodes } from "services"; -import { Code } from "types/code"; +import { Code } from "services/code"; +import { getAuthCodes } from "services/remote"; const AuthenticatorCodesPage = () => { const appContext = useContext(AppContext); diff --git a/web/apps/auth/src/types/code.ts b/web/apps/auth/src/services/code.ts similarity index 100% rename from web/apps/auth/src/types/code.ts rename to web/apps/auth/src/services/code.ts diff --git a/web/apps/auth/src/services/index.ts b/web/apps/auth/src/services/remote.ts similarity index 99% rename from web/apps/auth/src/services/index.ts rename to web/apps/auth/src/services/remote.ts index 8ef166bcd..633d5f9d0 100644 --- a/web/apps/auth/src/services/index.ts +++ b/web/apps/auth/src/services/remote.ts @@ -6,7 +6,7 @@ import { getEndpoint } from "@ente/shared/network/api"; import { getToken } from "@ente/shared/storage/localStorage/helpers"; import { getActualKey } from "@ente/shared/user"; import { HttpStatusCode } from "axios"; -import { Code } from "types/code"; +import { Code } from "services/code"; const ENDPOINT = getEndpoint();