Skip to content

armgit / ente

Public Imported from GitHub
0

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

New home

Manav Rathi967149c04b5d
diff --git a/web/apps/photos/src/components/FixCreationTime.tsx b/web/apps/photos/src/components/FixCreationTime.tsx
index 60104704b8..e4dc2e6a6b 100644
--- a/web/apps/photos/src/components/FixCreationTime.tsx
+++ b/web/apps/photos/src/components/FixCreationTime.tsx
@@ -1,5 +1,6 @@
import type { ParsedMetadataDate } from "@/media/file-metadata";
import { PhotoDateTimePicker } from "@/new/photos/components/PhotoDateTimePicker";
+import { updateCreationTimeWithExif } from "@/new/photos/services/fix-exif";
import { EnteFile } from "@/new/photos/types/file";
import DialogBox from "@ente/shared/components/DialogBox/";
import {
@@ -16,7 +17,6 @@ import { useFormik } from "formik";
import { t } from "i18next";
import { GalleryContext } from "pages/gallery";
import React, { useContext, useEffect, useState } from "react";
-import { updateCreationTimeWithExif } from "services/fix-exif";
export interface FixCreationTimeAttributes {
files: EnteFile[];
@@ -131,14 +131,15 @@ interface OptionsFormProps {
}
const OptionsForm: React.FC<OptionsFormProps> = ({ step, onSubmit, hide }) => {
- const { values, handleChange, setValues, handleSubmit } = useFormik<FormValues>({
- initialValues: {
- option: "date-time-original",
- customDate: undefined,
- },
- validateOnBlur: false,
- onSubmit,
- });
+ const { values, handleChange, setValues, handleSubmit } =
+ useFormik<FormValues>({
+ initialValues: {
+ option: "date-time-original",
+ customDate: undefined,
+ },
+ validateOnBlur: false,
+ onSubmit,
+ });
return (
<>
diff --git a/web/apps/photos/src/services/fix-exif.ts b/web/packages/new/photos/services/fix-exif.ts
similarity index 100%
rename from web/apps/photos/src/services/fix-exif.ts
rename to web/packages/new/photos/services/fix-exif.ts