Skip to content

armgit / ente

Public Imported from GitHub
0

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

Move

Manav Rathi7788ba1fa4e0
diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsx
index ccfb6cd73e..d819ec8add 100644
--- a/web/apps/photos/src/components/Sidebar/index.tsx
+++ b/web/apps/photos/src/components/Sidebar/index.tsx
@@ -6,12 +6,12 @@ import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
import log from "@/base/log";
import { savedLogs } from "@/base/log-web";
import { customAPIHost } from "@/base/origins";
+import { RecoveryKey } from "@/new/photos/components/RecoveryKey";
import type { CollectionSummaries } from "@/new/photos/services/collection/ui";
import { AppContext, useAppContext } from "@/new/photos/types/context";
import { initiateEmail, openURL } from "@/new/photos/utils/web";
import { SpaceBetweenFlex } from "@ente/shared/components/Container";
import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";
-import RecoveryKey from "@ente/shared/components/RecoveryKey";
import ThemeSwitcher from "@ente/shared/components/ThemeSwitcher";
import { PHOTOS_PAGES as PAGES } from "@ente/shared/constants/pages";
import { useLocalState } from "@ente/shared/hooks/useLocalState";
diff --git a/web/packages/shared/components/RecoveryKey.tsx b/web/packages/new/photos/components/RecoveryKey.tsx
similarity index 91%
rename from web/packages/shared/components/RecoveryKey.tsx
rename to web/packages/new/photos/components/RecoveryKey.tsx
index 367724ff9d..b9fa3edf31 100644
--- a/web/packages/shared/components/RecoveryKey.tsx
+++ b/web/packages/new/photos/components/RecoveryKey.tsx
@@ -1,3 +1,8 @@
+/* eslint-disable @typescript-eslint/no-floating-promises */
+/* eslint-disable react-hooks/exhaustive-deps */
+/* eslint-disable @typescript-eslint/no-unsafe-return */
+/* eslint-disable @typescript-eslint/no-unsafe-assignment */
+/* eslint-disable @typescript-eslint/no-unsafe-call */
import { errorDialogAttributes } from "@/base/components/utils/mini-dialog";
import { useIsMobileWidth } from "@/base/hooks";
import log from "@/base/log";
@@ -30,7 +35,7 @@ interface Props {
onHide: () => void;
}
-function RecoveryKey({ ...props }: Props) {
+export function RecoveryKey({ ...props }: Props) {
const { showMiniDialog } = useAppContext();
const [recoveryKey, setRecoveryKey] = useState<string | null>(null);
@@ -100,7 +105,6 @@ function RecoveryKey({ ...props }: Props) {
</Dialog>
);
}
-export default RecoveryKey;
const DashedBorderWrapper = styled(Box)(({ theme }) => ({
border: `1px dashed ${theme.palette.grey.A400}`,