mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
fix: fmt
This commit is contained in:
parent
a70078ccdc
commit
ba40516c54
1 changed files with 3 additions and 2 deletions
|
@ -20,7 +20,6 @@ const defaultOptions: FolderContentOptions = {
|
|||
}
|
||||
|
||||
export default ((opts?: Partial<FolderContentOptions>) => {
|
||||
// Merge options with defaults
|
||||
const options: FolderContentOptions = { ...defaultOptions, ...opts }
|
||||
|
||||
function FolderContent(props: QuartzComponentProps) {
|
||||
|
@ -50,7 +49,9 @@ export default ((opts?: Partial<FolderContentOptions>) => {
|
|||
<article>
|
||||
<p>{content}</p>
|
||||
</article>
|
||||
{options.showFolderCount && <p>{pluralize(allPagesInFolder.length, "item")} under this folder.</p>}
|
||||
{options.showFolderCount && (
|
||||
<p>{pluralize(allPagesInFolder.length, "item")} under this folder.</p>
|
||||
)}
|
||||
<div>
|
||||
<PageList {...listProps} />
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue