Skip to content

armgit / ente

Public Imported from GitHub
0

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

refactor code

Abhinavd0c6a9d9409a
diff --git a/apps/photos/src/components/Collections/index.tsx b/apps/photos/src/components/Collections/index.tsx
index e7229f45fa..67d919cd5c 100644
--- a/apps/photos/src/components/Collections/index.tsx
+++ b/apps/photos/src/components/Collections/index.tsx
@@ -140,6 +140,7 @@ export default function Collections(props: Iprops) {
const closeAllCollections = () => setAllCollectionView(false);
const openAllCollections = () => setAllCollectionView(true);
const closeCollectionShare = () => setCollectionShareModalView(false);
+ const closeAlbumCastDialog = () => setShowAlbumCastDialog(false);
return (
<>
@@ -176,9 +177,9 @@ export default function Collections(props: Iprops) {
collection={activeCollection}
/>
<AlbumCastDialog
- currentCollection={props.activeCollection}
+ currentCollection={activeCollection}
show={showAlbumCastDialog}
- onHide={() => setShowAlbumCastDialog(false)}
+ onHide={closeAlbumCastDialog}
/>
</>
);