Skip to content

armgit / ente

Public Imported from GitHub
0

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

Tweak

Manav Rathi042e605c51ad
diff --git a/web/apps/photos/src/components/Collections/CollectionShare/index.tsx b/web/apps/photos/src/components/Collections/CollectionShare/index.tsx
index a1804f8652..a2523a1567 100644
--- a/web/apps/photos/src/components/Collections/CollectionShare/index.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionShare/index.tsx
@@ -8,14 +8,17 @@ import EmailShare from "./emailShare";
import PublicShare from "./publicShare";
import SharingDetails from "./sharingDetails";
-interface Props {
+interface CollectionShareProps {
open: boolean;
onClose: () => void;
collection: Collection;
collectionSummary: CollectionSummary;
}
-function CollectionShare({ collectionSummary, ...props }: Props) {
+export const CollectionShare: React.FC<CollectionShareProps> = ({
+ collectionSummary,
+ ...props
+}) => {
const handleRootClose = () => {
props.onClose();
};
@@ -77,5 +80,4 @@ function CollectionShare({ collectionSummary, ...props }: Props) {
</Stack>
</SidebarDrawer>
);
-}
-export default CollectionShare;
+};
diff --git a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
index d9c7d35f71..28bc207407 100644
--- a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
+++ b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
@@ -22,7 +22,7 @@ import {
} from "@ente/shared/storage/localStorage";
import AllCollections from "components/Collections/AllCollections";
import { SetCollectionNamerAttributes } from "components/Collections/CollectionNamer";
-import CollectionShare from "components/Collections/CollectionShare";
+import { CollectionShare } from "components/Collections/CollectionShare";
import { ITEM_TYPE, TimeStampListItem } from "components/PhotoList";
import React, { useCallback, useEffect, useMemo, useState } from "react";
import { sortCollectionSummaries } from "services/collectionService";