Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix formatting issues

Manav Rathid57e59493b60
diff --git a/web/apps/photos/src/components/PhotoFrame.tsx b/web/apps/photos/src/components/PhotoFrame.tsx
index 524b555efb..405f09ac4b 100644
--- a/web/apps/photos/src/components/PhotoFrame.tsx
+++ b/web/apps/photos/src/components/PhotoFrame.tsx
@@ -17,16 +17,16 @@ import DownloadManager, {
LivePhotoSourceURL,
SourceURLs,
} from "services/download";
-import {
- handleSelectCreator,
- updateFileMsrcProps,
- updateFileSrcProps,
-} from "utils/photoFrame";
import { EnteFile } from "types/file";
import {
SelectedState,
SetFilesDownloadProgressAttributesCreator,
} from "types/gallery";
+import {
+ handleSelectCreator,
+ updateFileMsrcProps,
+ updateFileSrcProps,
+} from "utils/photoFrame";
import { PhotoList } from "./PhotoList";
import { DedupePhotoList } from "./PhotoList/dedupe";
import PreviewCard from "./pages/gallery/PreviewCard";
@@ -234,7 +234,7 @@ const PhotoFrame = ({
const handleSelect = handleSelectCreator(
setSelected,
activeCollectionID,
- setRangeStart
+ setRangeStart,
);
const onHoverOver = (index: number) => () => {
diff --git a/web/apps/photos/src/pages/gallery/index.tsx b/web/apps/photos/src/pages/gallery/index.tsx
index 46dd87c898..e0bf2de762 100644
--- a/web/apps/photos/src/pages/gallery/index.tsx
+++ b/web/apps/photos/src/pages/gallery/index.tsx
@@ -1017,7 +1017,8 @@ export default function Gallery() {
isClipSearchResult,
selectedFile: selected,
setSelectedFiles: setSelected,
- }}>
+ }}
+ >
<FullScreenDropZone
getDragAndDropRootProps={getDragAndDropRootProps}
>
diff --git a/web/apps/photos/src/utils/photoFrame/index.ts b/web/apps/photos/src/utils/photoFrame/index.ts
index 4396c78b93..8b92126f8e 100644
--- a/web/apps/photos/src/utils/photoFrame/index.ts
+++ b/web/apps/photos/src/utils/photoFrame/index.ts
@@ -1,7 +1,7 @@
-import { FILE_TYPE } from "constants/file";
-import { EnteFile } from "types/file";
import { logError } from "@ente/shared/sentry";
+import { FILE_TYPE } from "constants/file";
import { LivePhotoSourceURL, SourceURLs } from "services/download";
+import { EnteFile } from "types/file";
import { SetSelectedState } from "types/gallery";
const WAIT_FOR_VIDEO_PLAYBACK = 1 * 1000;
@@ -135,11 +135,11 @@ export const handleSelectCreator =
(
setSelected: SetSelectedState,
activeCollectionID: number,
- setRangeStart?
+ setRangeStart?,
) =>
(id: number, isOwnFile: boolean, index?: number) =>
(checked: boolean) => {
- if (typeof index !== 'undefined') {
+ if (typeof index !== "undefined") {
if (checked) {
setRangeStart(index);
} else {
diff --git a/web/packages/shared/time/format.ts b/web/packages/shared/time/format.ts
index 1fc7ef0891..0380d56ff6 100644
--- a/web/packages/shared/time/format.ts
+++ b/web/packages/shared/time/format.ts
@@ -90,10 +90,10 @@ export const isSameDay = (first, second) => {
export const getDate = (item) => {
const currentDate = item.metadata.creationTime / 1000;
const date = isSameDay(new Date(currentDate), new Date())
- ? t('TODAY')
+ ? t("TODAY")
: isSameDay(new Date(currentDate), new Date(Date.now() - A_DAY))
- ? t('YESTERDAY')
- : formatDate(currentDate);
+ ? t("YESTERDAY")
+ : formatDate(currentDate);
return date;
};