File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
react-notion-x/src/third-party Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -47,5 +47,6 @@ export interface Collection {
4747 property : PropertyID
4848 visibility : 'show' | 'hide'
4949 } >
50+ hide_linked_collection_name ?: boolean
5051 }
5152}
Original file line number Diff line number Diff line change @@ -175,6 +175,8 @@ const CollectionViewBlock: React.FC<{
175175 }
176176
177177 const title = getTextContent ( collection . name ) . trim ( )
178+ const showTitle =
179+ collectionView . format ?. hide_linked_collection_name !== true && title
178180 if ( collection . icon ) {
179181 block . format = {
180182 ...block . format ,
@@ -194,9 +196,8 @@ const CollectionViewBlock: React.FC<{
194196 />
195197 ) }
196198 </ div >
197- < div className = 'notion-collection-header' >
198- { /*TODO: only show if no full DB*/ }
199- { title && (
199+ { showTitle && (
200+ < div className = 'notion-collection-header' >
200201 < div className = 'notion-collection-header-title' >
201202 < PageIcon
202203 block = { block }
@@ -205,8 +206,8 @@ const CollectionViewBlock: React.FC<{
205206 />
206207 { title }
207208 </ div >
208- ) }
209- </ div >
209+ </ div >
210+ ) }
210211 </ div >
211212 < div className = { cs ( 'notion-collection' , className ) } >
212213 < CollectionView
You can’t perform that action at this time.
0 commit comments