File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
src/library-authoring/collections Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -41,23 +41,25 @@ const LibraryCollections = ({ variant }: LibraryCollectionsProps) => {
41
41
) ;
42
42
43
43
if ( totalCollectionHits === 0 ) {
44
- return isFiltered ?
45
- < NoSearchResults infoText = { messages . noSearchResultsCollections } />
46
- : < NoComponents
47
- infoText = { messages . noCollections }
48
- addBtnText = { messages . addCollection }
49
- handleBtnClick = { openCreateCollectionModal }
50
- /> ;
44
+ return isFiltered
45
+ ? < NoSearchResults infoText = { messages . noSearchResultsCollections } />
46
+ : (
47
+ < NoComponents
48
+ infoText = { messages . noCollections }
49
+ addBtnText = { messages . addCollection }
50
+ handleBtnClick = { openCreateCollectionModal }
51
+ />
52
+ ) ;
51
53
}
52
54
53
55
return (
54
56
< div className = "library-cards-grid" >
55
- { collectionList . map ( ( collectionHit ) => (
57
+ { collectionList . map ( ( collectionHit ) => (
56
58
< CollectionCard
57
59
key = { collectionHit . id }
58
60
collectionHit = { collectionHit }
59
61
/>
60
- ) ) }
62
+ ) ) }
61
63
</ div >
62
64
) ;
63
65
} ;
You can’t perform that action at this time.
0 commit comments