refactor code

This commit is contained in:
Abhinav 2024-01-30 05:47:20 +05:30
parent 0dff59eb7a
commit d0c6a9d940

View file

@ -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}
/>
</>
);