Skip to content

armgit / ente

Public Imported from GitHub
0

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

Move

Manav Rathif49ece10e663
diff --git a/web/apps/photos/src/components/PhotoViewer/index.tsx b/web/apps/photos/src/components/PhotoViewer/index.tsx
index 5a8b8ae5e4..ac906b262b 100644
--- a/web/apps/photos/src/components/PhotoViewer/index.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/index.tsx
@@ -9,6 +9,11 @@ import {
} from "@/base/components/utils/modal";
import { lowercaseExtension } from "@/base/file-name";
import log from "@/base/log";
+import {
+ FileInfo,
+ type FileInfoExif,
+ type FileInfoProps,
+} from "@/gallery/components/FileInfo";
import { downloadManager } from "@/gallery/services/download";
import { fileLogID, type EnteFile } from "@/media/file";
import { FileType } from "@/media/file-type";
@@ -68,7 +73,6 @@ import {
getFileFromURL,
} from "utils/file";
import { PublicCollectionGalleryContext } from "utils/publicCollectionGallery";
-import { FileInfo, type FileInfoExif, type FileInfoProps } from "./FileInfo";
import { ImageEditorOverlay } from "./ImageEditorOverlay";
export type PhotoViewerProps = Pick<
diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsx
similarity index 99%
rename from web/apps/photos/src/components/PhotoViewer/FileInfo.tsx
rename to web/packages/gallery/components/FileInfo.tsx
index c6bef09278..8110187692 100644
--- a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx
+++ b/web/packages/gallery/components/FileInfo.tsx
@@ -1,3 +1,7 @@
+/* TODO: Audit this file */
+/* eslint-disable */
+/* @ts-nocheck */
+
import { LinkButtonUndecorated } from "@/base/components/LinkButton";
import { TitledMiniDialog } from "@/base/components/MiniDialog";
import { type ButtonishProps } from "@/base/components/mui";
@@ -15,7 +19,7 @@ import {
changeFileName,
updateExistingFilePubMetadata,
} from "@/gallery/services/file";
-import { EnteFile } from "@/media/file";
+import { type EnteFile } from "@/media/file";
import type { ParsedMetadata } from "@/media/file-metadata";
import {
fileCreationPhotoDate,
@@ -66,13 +70,13 @@ import VideocamOutlinedIcon from "@mui/icons-material/VideocamOutlined";
import {
Box,
CircularProgress,
- DialogProps,
IconButton,
Link,
Stack,
styled,
TextField,
Typography,
+ type DialogProps,
} from "@mui/material";
import { Formik } from "formik";
import { t } from "i18next";