Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove unused image (and its preload)

Manav Rathiebf51b99c862
diff --git a/web/apps/photos/public/images/delete-account/1x.png b/web/apps/photos/public/images/delete-account/1x.png
deleted file mode 100644
index b8288cee8e..0000000000
Binary files a/web/apps/photos/public/images/delete-account/1x.png and /dev/null differ
diff --git a/web/apps/photos/public/images/delete-account/2x.png b/web/apps/photos/public/images/delete-account/2x.png
deleted file mode 100644
index 31c9014bc6..0000000000
Binary files a/web/apps/photos/public/images/delete-account/2x.png and /dev/null differ
diff --git a/web/apps/photos/public/images/delete-account/3x.png b/web/apps/photos/public/images/delete-account/3x.png
deleted file mode 100644
index 7be1e70ded..0000000000
Binary files a/web/apps/photos/public/images/delete-account/3x.png and /dev/null differ
diff --git a/web/apps/photos/src/components/DeleteAccountModal.tsx b/web/apps/photos/src/components/DeleteAccountModal.tsx
index 43d312b6cb..40a5214454 100644
--- a/web/apps/photos/src/components/DeleteAccountModal.tsx
+++ b/web/apps/photos/src/components/DeleteAccountModal.tsx
@@ -7,10 +7,9 @@ import { Formik, type FormikHelpers } from "formik";
import { t } from "i18next";
import { AppContext } from "pages/_app";
import { GalleryContext } from "pages/gallery";
-import { useContext, useEffect, useRef, useState } from "react";
+import { useContext, useRef, useState } from "react";
import { Trans } from "react-i18next";
import { deleteAccount, getAccountDeleteChallenge } from "services/userService";
-import { preloadImage } from "utils/common";
import { decryptDeleteAccountChallenge } from "utils/crypto";
import * as Yup from "yup";
import { CheckboxInput } from "./CheckboxInput";
@@ -39,10 +38,6 @@ const DeleteAccountModal = ({ open, onClose }: Iprops) => {
const isMobile = useMediaQuery("(max-width: 428px)");
- useEffect(() => {
- preloadImage("/images/delete-account");
- }, []);
-
const somethingWentWrong = () =>
setDialogBoxAttributesV2({
title: t("ERROR"),