Skip to content

armgit / ente

Public Imported from GitHub
0

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

unnest

Manav Rathid2fe71f478bc
diff --git a/web/apps/photos/src/components/Collections/CollectionSelector/index.tsx b/web/apps/photos/src/components/Collections/CollectionSelector.tsx
similarity index 97%
rename from web/apps/photos/src/components/Collections/CollectionSelector/index.tsx
rename to web/apps/photos/src/components/Collections/CollectionSelector.tsx
index 8857a907ce..b1ad39cf59 100644
--- a/web/apps/photos/src/components/Collections/CollectionSelector/index.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionSelector.tsx
@@ -41,19 +41,20 @@ export interface CollectionSelectorAttributes {
onCancel?: () => void;
}
-interface Props {
+interface CollectionSelectorProps {
open: boolean;
onClose: () => void;
attributes: CollectionSelectorAttributes;
collections: Collection[];
collectionSummaries: CollectionSummaries;
}
-function CollectionSelector({
+
+export const CollectionSelector: React.FC<CollectionSelectorProps> = ({
attributes,
collectionSummaries,
collections,
...props
-}: Props) {
+}) => {
const isMobile = useMediaQuery("(max-width: 428px)");
const [collectionsToShow, setCollectionsToShow] = useState<
@@ -168,9 +169,7 @@ function CollectionSelector({
</DialogContent>
</AllCollectionDialog>
);
-}
-
-export default CollectionSelector;
+};
interface CollectionSelectorCardProps {
collectionSummary: CollectionSummary;
@@ -196,7 +195,7 @@ interface AddCollectionButtonProps {
showNextModal: () => void;
}
-export const AddCollectionButton: React.FC<AddCollectionButtonProps> = ({
+const AddCollectionButton: React.FC<AddCollectionButtonProps> = ({
showNextModal,
}) => (
<CollectionCard
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 4053c45939..73786d598d 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -62,7 +62,8 @@ import { Collections } from "components/Collections";
import CollectionNamer, {
CollectionNamerAttributes,
} from "components/Collections/CollectionNamer";
-import CollectionSelector, {
+import {
+ CollectionSelector,
CollectionSelectorAttributes,
} from "components/Collections/CollectionSelector";
import ExportModal from "components/ExportModal";