From 1b4f1de70ba715444338e0c08f697b020bcab89e Mon Sep 17 00:00:00 2001 From: Abhinav Date: Sat, 25 Jun 2022 14:30:06 +0530 Subject: [PATCH] rename --- .../Collections/AllCollections/index.tsx | 18 +++++++++--------- src/components/Collections/index.tsx | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/Collections/AllCollections/index.tsx b/src/components/Collections/AllCollections/index.tsx index ae697ef90..242181906 100644 --- a/src/components/Collections/AllCollections/index.tsx +++ b/src/components/Collections/AllCollections/index.tsx @@ -4,7 +4,7 @@ import { COLLECTION_SORT_BY } from 'constants/collection'; import { sortCollectionSummaries } from 'services/collectionService'; import { Transition, - AllCollectionContainer, + AllCollectionDialog, } from 'components/Collections/AllCollections/Container'; import { useLocalState } from 'hooks/useLocalState'; import { LS_KEYS } from 'utils/storage/localStorage'; @@ -15,8 +15,8 @@ import { AllCollectionTile } from '../styledComponents'; import { isSystemCollection } from 'utils/collection'; interface Iprops { - isOpen: boolean; - close: () => void; + open: boolean; + onClose: () => void; collectionSummaries: CollectionSummaries; setActiveCollection: (id?: number) => void; } @@ -24,7 +24,7 @@ interface Iprops { const LeftSlideTransition = Transition('up'); export default function AllCollections(props: Iprops) { - const { collectionSummaries, isOpen, close, setActiveCollection } = props; + const { collectionSummaries, open, onClose, setActiveCollection } = props; const [collectionSortBy, setCollectionSortBy] = useLocalState( @@ -45,14 +45,14 @@ export default function AllCollections(props: Iprops) { const onCollectionClick = (collectionID: number) => { setActiveCollection(collectionID); - close(); + onClose(); }; return ( - + onClose={onClose} + open={open}> - + ); } diff --git a/src/components/Collections/index.tsx b/src/components/Collections/index.tsx index 95736c3be..e361a73f5 100644 --- a/src/components/Collections/index.tsx +++ b/src/components/Collections/index.tsx @@ -89,8 +89,8 @@ export default function Collections(props: Iprops) { /> setAllCollectionView(false)} + open={allCollectionView} + onClose={() => setAllCollectionView(false)} collectionSummaries={collectionSummaries} setActiveCollection={setActiveCollectionID} />