R
This commit is contained in:
@@ -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<OptionsFormProps> = ({
|
||||
/>
|
||||
</RadioGroup>
|
||||
{values.option == "custom" && (
|
||||
<PhotoDateTimePicker
|
||||
<FileDateTimePicker
|
||||
onAccept={(customDate) =>
|
||||
setValues({ option: "custom", customDate })
|
||||
}
|
||||
|
||||
@@ -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<CreationTimeProps> = ({
|
||||
}
|
||||
/>
|
||||
{isInEditMode && (
|
||||
<PhotoDateTimePicker
|
||||
<FileDateTimePicker
|
||||
initialValue={originalDate}
|
||||
disabled={loading}
|
||||
onAccept={saveEdits}
|
||||
|
||||
@@ -8,7 +8,7 @@ import dayjs, { Dayjs } from "dayjs";
|
||||
import React, { useState } from "react";
|
||||
import { aboveFileViewerContentZ } from "./utils/z-index";
|
||||
|
||||
interface PhotoDateTimePickerProps {
|
||||
interface FileDateTimePickerProps {
|
||||
/**
|
||||
* The initial date to preselect in the date/time picker.
|
||||
*
|
||||
@@ -45,7 +45,7 @@ interface PhotoDateTimePickerProps {
|
||||
* UTC offset. For more discussion of the caveats and nuances around this, see
|
||||
* [Note: Photos are always in local date/time].
|
||||
*/
|
||||
export const PhotoDateTimePicker: React.FC<PhotoDateTimePickerProps> = ({
|
||||
export const FileDateTimePicker: React.FC<FileDateTimePickerProps> = ({
|
||||
initialValue,
|
||||
disabled,
|
||||
onAccept,
|
||||
Reference in New Issue
Block a user