From 12904ab7960edc3bedd77c65cf5e6a5d599d882d Mon Sep 17 00:00:00 2001
From: Xinyang Yu <47915643+xy-241@users.noreply.github.com>
Date: Fri, 09 Aug 2024 01:00:20 +0000
Subject: [PATCH] docs: Adds back Xinyang's cs garden to showcase (#1323)
---
quartz/components/Explorer.tsx | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/quartz/components/Explorer.tsx b/quartz/components/Explorer.tsx
index f701734..24583a1 100644
--- a/quartz/components/Explorer.tsx
+++ b/quartz/components/Explorer.tsx
@@ -1,4 +1,4 @@
-import { QuartzComponentConstructor, QuartzComponentProps } from "./types"
+import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
import explorerStyle from "./styles/explorer.scss"
// @ts-ignore
@@ -75,7 +75,12 @@
jsonTree = JSON.stringify(folders)
}
- function Explorer({ cfg, allFiles, displayClass, fileData }: QuartzComponentProps) {
+ const Explorer: QuartzComponent = ({
+ cfg,
+ allFiles,
+ displayClass,
+ fileData,
+ }: QuartzComponentProps) => {
constructFileTree(allFiles)
return (
<div class={classNames(displayClass, "explorer")}>
@@ -87,7 +92,7 @@
data-savestate={opts.useSavedState}
data-tree={jsonTree}
>
- <h1>{opts.title ?? i18n(cfg.locale).components.explorer.title}</h1>
+ <h2>{opts.title ?? i18n(cfg.locale).components.explorer.title}</h2>
<svg
xmlns="http://www.w3.org/2000/svg"
width="14"
--
Gitblit v1.10.0