From ba40516c544f4196302364a84ee2cbecb331d46d Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Sat, 27 Jan 2024 22:24:13 -0800 Subject: [PATCH] fix: fmt --- quartz/components/pages/FolderContent.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quartz/components/pages/FolderContent.tsx b/quartz/components/pages/FolderContent.tsx index 1acb98a..67cfa8d 100644 --- a/quartz/components/pages/FolderContent.tsx +++ b/quartz/components/pages/FolderContent.tsx @@ -20,7 +20,6 @@ const defaultOptions: FolderContentOptions = { } export default ((opts?: Partial) => { - // Merge options with defaults const options: FolderContentOptions = { ...defaultOptions, ...opts } function FolderContent(props: QuartzComponentProps) { @@ -50,7 +49,9 @@ export default ((opts?: Partial) => {

{content}

- {options.showFolderCount &&

{pluralize(allPagesInFolder.length, "item")} under this folder.

} + {options.showFolderCount && ( +

{pluralize(allPagesInFolder.length, "item")} under this folder.

+ )}