Manav Rathi 1 년 전
부모
커밋
e4c18b9e74
3개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 2
      web/apps/payments/src/constants/common.ts
  2. 1 2
      web/apps/payments/src/pages/desktop-redirect.tsx
  3. 1 2
      web/apps/payments/src/pages/index.tsx

+ 0 - 2
web/apps/payments/src/constants/common.ts

@@ -1,2 +0,0 @@
-export const DESKTOP_REDIRECT_URL = "ente://app/gallery";
-export const ENTE_WEBSITE_URL = "https://ente.io";

+ 1 - 2
web/apps/payments/src/pages/desktop-redirect.tsx

@@ -1,12 +1,11 @@
 import { Container } from "components/Container";
 import EnteSpinner from "components/EnteSpinner";
-import { DESKTOP_REDIRECT_URL } from "constants/common";
 import * as React from "react";
 
 export default function DesktopRedirect() {
     React.useEffect(() => {
         const currentURL = new URL(window.location.href);
-        const desktopRedirectURL = new URL(DESKTOP_REDIRECT_URL);
+        const desktopRedirectURL = new URL("ente://app/gallery");
         desktopRedirectURL.search = currentURL.search;
         window.location.href = desktopRedirectURL.href;
     }, []);

+ 1 - 2
web/apps/payments/src/pages/index.tsx

@@ -1,6 +1,5 @@
 import { Container } from "components/Container";
 import EnteSpinner from "components/EnteSpinner";
-import { ENTE_WEBSITE_URL } from "constants/common";
 import * as React from "react";
 import { parseAndHandleRequest } from "services/billingService";
 import { CUSTOM_ERROR } from "utils/error";
@@ -19,7 +18,7 @@ export default function Home() {
                     e instanceof Error &&
                     e.message === CUSTOM_ERROR.DIRECT_OPEN_WITH_NO_QUERY_PARAMS
                 ) {
-                    window.location.href = ENTE_WEBSITE_URL;
+                    window.location.href = "https://ente.io";
                 } else {
                     setErrorMessageView(true);
                 }