From 4afa486c194356124199eb7500416349dd4327dc Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Tue, 25 Feb 2025 14:11:47 +0530 Subject: [PATCH] R --- web/apps/photos/src/components/FixCreationTime.tsx | 4 ++-- web/packages/gallery/components/FileInfo.tsx | 4 ++-- .../{PhotoDateTimePicker.tsx => FileDateTimePicker.tsx} | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename web/packages/new/photos/components/{PhotoDateTimePicker.tsx => FileDateTimePicker.tsx} (98%) diff --git a/web/apps/photos/src/components/FixCreationTime.tsx b/web/apps/photos/src/components/FixCreationTime.tsx index 171433cb46..cf3028e434 100644 --- a/web/apps/photos/src/components/FixCreationTime.tsx +++ b/web/apps/photos/src/components/FixCreationTime.tsx @@ -11,7 +11,7 @@ import { type ParsedMetadataDate, } from "@/media/file-metadata"; import { FileType } from "@/media/file-type"; -import { PhotoDateTimePicker } from "@/new/photos/components/PhotoDateTimePicker"; +import { FileDateTimePicker } from "@/new/photos/components/FileDateTimePicker"; import { Dialog, DialogContent, @@ -205,7 +205,7 @@ const OptionsForm: React.FC = ({ /> {values.option == "custom" && ( - setValues({ option: "custom", customDate }) } diff --git a/web/packages/gallery/components/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsx index 8c919ab0b1..b2bb6aed69 100644 --- a/web/packages/gallery/components/FileInfo.tsx +++ b/web/packages/gallery/components/FileInfo.tsx @@ -40,9 +40,9 @@ import { type ParsedMetadataDate, } from "@/media/file-metadata"; import { FileType } from "@/media/file-type"; +import { FileDateTimePicker } from "@/new/photos/components/FileDateTimePicker"; import { ChipButton } from "@/new/photos/components/mui/ChipButton"; import { FilePeopleList } from "@/new/photos/components/PeopleList"; -import { PhotoDateTimePicker } from "@/new/photos/components/PhotoDateTimePicker"; import { confirmDisableMapsDialogAttributes, confirmEnableMapsDialogAttributes, @@ -725,7 +725,7 @@ const CreationTime: React.FC = ({ } /> {isInEditMode && ( - = ({ +export const FileDateTimePicker: React.FC = ({ initialValue, disabled, onAccept,