From f49ece10e66303292103d07141a71039bcd62c43 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 14 Feb 2025 11:57:03 +0530 Subject: [PATCH] Move --- web/apps/photos/src/components/PhotoViewer/index.tsx | 6 +++++- .../gallery/components}/FileInfo.tsx | 8 ++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) rename web/{apps/photos/src/components/PhotoViewer => packages/gallery/components}/FileInfo.tsx (99%) 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";