Skip to content

armgit / ente

Public Imported from GitHub
0

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

Dup

Manav Rathi71ea266f9a0c
diff --git a/web/packages/new/photos/pages/duplicates.tsx b/web/packages/new/photos/pages/duplicates.tsx
index a0a6e31812..39a123586f 100644
--- a/web/packages/new/photos/pages/duplicates.tsx
+++ b/web/packages/new/photos/pages/duplicates.tsx
@@ -1,4 +1,6 @@
+import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
import { pt } from "@/base/i18n";
+import { VerticallyCentered } from "@ente/shared/components/Container";
import ArrowBackIcon from "@mui/icons-material/ArrowBack";
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
import SortIcon from "@mui/icons-material/Sort";
@@ -9,14 +11,16 @@ import { useAppContext } from "../types/context";
const Page: React.FC = () => {
const { showNavBar } = useAppContext();
+
useEffect(() => {
showNavBar(false);
}, []);
+
return (
- <div>
+ <Stack sx={{ flex: 1 }}>
<Navbar />
- Hello
- </div>
+ <Contents />
+ </Stack>
);
};
@@ -52,3 +56,11 @@ const Navbar: React.FC = () => {
</Stack>
);
};
+
+const Contents: React.FC = () => {
+ return (
+ <VerticallyCentered>
+ <ActivityIndicator />
+ </VerticallyCentered>
+ );
+};
diff --git a/web/packages/new/photos/services/dedup.ts b/web/packages/new/photos/services/dedup.ts
new file mode 100644
index 0000000000..7b1b79163a
--- /dev/null
+++ b/web/packages/new/photos/services/dedup.ts
@@ -0,0 +1,7 @@
+/**
+ * Find exact duplicates in the user's library, and return them in groups that
+ * can then be deduped keeping only one entry in each group.
+ */
+export const deduceDuplicates = () => {
+ return [];
+};