Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(CollectionMapDialog):fixed-lint

Aswin Asok19d4722ebac9
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
index 93f48f04cc..cf6d2d5e27 100644
--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
@@ -36,7 +36,6 @@ import {
GalleryItemsSummary,
} from "ente-new/photos/components/gallery/ListHeader";
import { useSettingsSnapshot } from "ente-new/photos/components/utils/use-snapshot";
-import type { FileListWithViewerProps } from "../FileListWithViewer";
import {
defaultHiddenCollectionUserFacingName,
deleteCollection,
@@ -63,6 +62,7 @@ import { usePhotosAppContext } from "ente-new/photos/types/context";
import { t } from "i18next";
import React, { useCallback, useRef } from "react";
import { Trans } from "react-i18next";
+import type { FileListWithViewerProps } from "../FileListWithViewer";
import { CollectionMapDialog } from "./CollectionMapDialog";
export interface CollectionHeaderProps
diff --git a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx
index c7462fd265..b1816844ac 100644
--- a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx
@@ -865,7 +865,8 @@ export const CollectionMapDialog: React.FC<CollectionMapDialogProps> = ({
<CenteredBox onClose={onClose} closeLabel={t("close")}>
<Typography variant="body" color="text.secondary">
{t("no_geotagged_photos", {
- defaultValue: "No photos found with location information",
+ defaultValue:
+ "No photos found with location information",
})}
</Typography>
</CenteredBox>
diff --git a/web/apps/photos/src/components/FileListWithViewer.tsx b/web/apps/photos/src/components/FileListWithViewer.tsx
index 5e5eec60d0..abe713f5e6 100644
--- a/web/apps/photos/src/components/FileListWithViewer.tsx
+++ b/web/apps/photos/src/components/FileListWithViewer.tsx
@@ -176,7 +176,11 @@ export const FileListWithViewer: React.FC<FileListWithViewerProps> = ({
const handleSaveEditedImageCopy = useMemo(() => {
if (!enableImageEditing) return undefined;
- return (editedFile: File, collection: Collection, enteFile: EnteFile) => {
+ return (
+ editedFile: File,
+ collection: Collection,
+ enteFile: EnteFile,
+ ) => {
uploadManager.prepareForNewUpload();
uploadManager.showUploadProgressDialog();
void uploadManager.uploadFile(editedFile, collection, enteFile);