Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Move

Manav Rathi2504046e26b1
diff --git a/web/apps/auth/src/components/OTPDisplay.tsx b/web/apps/auth/src/components/OTPDisplay.tsx
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsx
index ad614c2f4a..c8e5166cfc 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 8ef166bcd4..633d5f9d05 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();