diff --git a/web/apps/photos/src/pages/deduplicate.tsx b/web/apps/photos/src/pages/deduplicate.tsx index 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( - DefaultDeduplicateContext, -); +export type DeduplicateContextType = { + isOnDeduplicatePage: boolean; + collectionNameMap: Map; +}; + +export const DeduplicateContext = createContext({ + isOnDeduplicatePage: false, + collectionNameMap: new Map(), +}); + export const Info = styled("div")` padding: 24px; font-size: 18px; @@ -187,7 +190,6 @@ export default function Deduplicate() { return ( ; -}; - -export const DefaultDeduplicateContext = { - clubSameTimeFilesOnly: false, - setClubSameTimeFilesOnly: () => null, - fileSizeMap: new Map(), - isOnDeduplicatePage: false, - collectionNameMap: new Map(), -};