fix: fmt
This commit is contained in:
parent
a70078ccdc
commit
ba40516c54
@ -20,7 +20,6 @@ const defaultOptions: FolderContentOptions = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default ((opts?: Partial<FolderContentOptions>) => {
|
export default ((opts?: Partial<FolderContentOptions>) => {
|
||||||
// Merge options with defaults
|
|
||||||
const options: FolderContentOptions = { ...defaultOptions, ...opts }
|
const options: FolderContentOptions = { ...defaultOptions, ...opts }
|
||||||
|
|
||||||
function FolderContent(props: QuartzComponentProps) {
|
function FolderContent(props: QuartzComponentProps) {
|
||||||
@ -50,7 +49,9 @@ export default ((opts?: Partial<FolderContentOptions>) => {
|
|||||||
<article>
|
<article>
|
||||||
<p>{content}</p>
|
<p>{content}</p>
|
||||||
</article>
|
</article>
|
||||||
{options.showFolderCount && <p>{pluralize(allPagesInFolder.length, "item")} under this folder.</p>}
|
{options.showFolderCount && (
|
||||||
|
<p>{pluralize(allPagesInFolder.length, "item")} under this folder.</p>
|
||||||
|
)}
|
||||||
<div>
|
<div>
|
||||||
<PageList {...listProps} />
|
<PageList {...listProps} />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user