diff --git a/web/apps/photos/src/components/Collections/CollectionSelector/AddCollectionButton.tsx b/web/apps/photos/src/components/Collections/CollectionSelector/AddCollectionButton.tsx
deleted file mode 100644
index 1037b7031e..0000000000
--- a/web/apps/photos/src/components/Collections/CollectionSelector/AddCollectionButton.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-import { AllCollectionTile } from "@/new/photos/components/ItemCards";
-import { CenteredFlex, Overlay } from "@ente/shared/components/Container";
-import { styled } from "@mui/material";
-import CollectionCard from "components/Collections/CollectionCard";
-import { AllCollectionTileText } from "components/Collections/styledComponents";
-import { t } from "i18next";
-
-const ImageContainer = styled(Overlay)`
- display: flex;
- font-size: 42px;
-`;
-
-interface Iprops {
- showNextModal: () => void;
-}
-
-export default function AddCollectionButton({ showNextModal }: Iprops) {
- return (
- showNextModal()}
- coverFile={null}
- >
- {t("create_albums")}
-
- +
-
-
- );
-}
diff --git a/web/apps/photos/src/components/Collections/CollectionSelector/index.tsx b/web/apps/photos/src/components/Collections/CollectionSelector/index.tsx
index e7c6756383..8857a907ce 100644
--- a/web/apps/photos/src/components/Collections/CollectionSelector/index.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionSelector/index.tsx
@@ -8,10 +8,20 @@ import type {
CollectionSummaries,
CollectionSummary,
} from "@/new/photos/types/collection";
-import { FlexWrapper } from "@ente/shared/components/Container";
+import {
+ CenteredFlex,
+ FlexWrapper,
+ Overlay,
+} from "@ente/shared/components/Container";
import DialogTitleWithCloseButton from "@ente/shared/components/DialogBox/TitleWithCloseButton";
-import { DialogContent, Typography, useMediaQuery } from "@mui/material";
+import {
+ DialogContent,
+ styled,
+ Typography,
+ useMediaQuery,
+} from "@mui/material";
import { AllCollectionDialog } from "components/Collections/AllCollections/dialog";
+import CollectionCard from "components/Collections/CollectionCard";
import { t } from "i18next";
import { useEffect, useState } from "react";
import { createUnCategorizedCollection } from "services/collectionService";
@@ -22,7 +32,6 @@ import {
isAddToAllowedCollection,
isMoveToAllowedCollection,
} from "utils/collection";
-import AddCollectionButton from "./AddCollectionButton";
export interface CollectionSelectorAttributes {
callback: (collection: Collection) => void;
@@ -182,3 +191,27 @@ const CollectionSelectorCard: React.FC = ({
);
+
+interface AddCollectionButtonProps {
+ showNextModal: () => void;
+}
+
+export const AddCollectionButton: React.FC = ({
+ showNextModal,
+}) => (
+ showNextModal()}
+ coverFile={null}
+ >
+ {t("create_albums")}
+
+ +
+
+
+);
+
+const ImageContainer = styled(Overlay)`
+ display: flex;
+ font-size: 42px;
+`;