@@ -12,8 +12,8 @@ import ComponentCount from '@src/generic/component-count';
1212import TagCount from '@src/generic/tag-count' ;
1313import { BlockTypeLabel , type ContentHitTags , Highlight } from '@src/search-manager' ;
1414import { skipIfUnwantedTarget } from '@src/utils' ;
15- import messages from './messages' ;
1615import { Report } from '@openedx/paragon/icons' ;
16+ import messages from './messages' ;
1717
1818type BaseCardProps = {
1919 itemType : string ;
@@ -50,7 +50,7 @@ const BaseCard = ({
5050
5151 const itemIcon = getItemIcon ( itemType ) ;
5252 const intl = useIntl ( ) ;
53- const itemComponentStyle = ! props . isPlaceholder ? getComponentStyleColor ( itemType ) : " component-style-import-placeholder" ;
53+ const itemComponentStyle = ! props . isPlaceholder ? getComponentStyleColor ( itemType ) : ' component-style-import-placeholder' ;
5454
5555 return (
5656 < Container className = "library-item-card selected" >
@@ -67,7 +67,7 @@ const BaseCard = ({
6767 < Card . Header
6868 className = { `library-item-header ${ itemComponentStyle } ` }
6969 title = {
70- < Icon src = { props . isPlaceholder ? Report : itemIcon } className = "library-item-header-icon my-2" />
70+ < Icon src = { props . isPlaceholder ? Report : itemIcon } className = "library-item-header-icon my-2" />
7171 }
7272 actions = { (
7373 < div
@@ -94,10 +94,12 @@ const BaseCard = ({
9494 < BlockTypeLabel blockType = { itemType } />
9595 </ small >
9696 </ Stack >
97- { ! props . isPlaceholder && < >
97+ { ! props . isPlaceholder && (
98+ < >
9899 < ComponentCount count = { numChildren } />
99100 < TagCount size = "sm" count = { tagCount } />
100- </ > }
101+ </ >
102+ ) }
101103 </ Stack >
102104 < div className = "badge-container d-flex align-items-center justify-content-center" >
103105 { props . hasUnpublishedChanges && (
0 commit comments