π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathi52a98c4973be
diff --git a/web/apps/photos/src/pages/deduplicate.tsx b/web/apps/photos/src/pages/deduplicate.tsxindex f0c0759e6c..50bc1576d2 100644--- a/web/apps/photos/src/pages/deduplicate.tsx+++ b/web/apps/photos/src/pages/deduplicate.tsx@@ -26,16 +26,19 @@ import {import { Duplicate, getDuplicates } from "services/deduplicationService";import { syncFiles, trashFiles } from "services/fileService";import { syncTrash } from "services/trashService";-import {- DeduplicateContextType,- DefaultDeduplicateContext,-} from "types/deduplicate";import { SelectedState } from "types/gallery";import { getSelectedFiles } from "utils/file";-export const DeduplicateContext = createContext<DeduplicateContextType>(- DefaultDeduplicateContext,-);+export type DeduplicateContextType = {+ isOnDeduplicatePage: boolean;+ collectionNameMap: Map<number, string>;+};++export const DeduplicateContext = createContext<DeduplicateContextType>({+ isOnDeduplicatePage: false,+ collectionNameMap: new Map<number, string>(),+});+export const Info = styled("div")`padding: 24px;font-size: 18px;@@ -187,7 +190,6 @@ export default function Deduplicate() {return (<DeduplicateContext.Providervalue={{- ...DefaultDeduplicateContext,collectionNameMap,isOnDeduplicatePage: true,}}diff --git a/web/apps/photos/src/types/deduplicate/index.ts b/web/apps/photos/src/types/deduplicate/index.tsindex 6a4007b62f..e69de29bb2 100644--- a/web/apps/photos/src/types/deduplicate/index.ts+++ b/web/apps/photos/src/types/deduplicate/index.ts@@ -1,12 +0,0 @@-export type DeduplicateContextType = {- isOnDeduplicatePage: boolean;- collectionNameMap: Map<number, string>;-};--export const DefaultDeduplicateContext = {- clubSameTimeFilesOnly: false,- setClubSameTimeFilesOnly: () => null,- fileSizeMap: new Map<number, number>(),- isOnDeduplicatePage: false,- collectionNameMap: new Map<number, string>(),-};