From 6ba138b4fa4a9ed48a79fd2f65202c97b8d66e6f Mon Sep 17 00:00:00 2001
From: 1900 <me@1900.live>
Date: Tue, 30 Jan 2024 17:58:09 +0000
Subject: [PATCH] feat: support selfhost umami (#764)
---
quartz/components/Search.tsx | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/quartz/components/Search.tsx b/quartz/components/Search.tsx
index bd9aa69..92684ae 100644
--- a/quartz/components/Search.tsx
+++ b/quartz/components/Search.tsx
@@ -1,12 +1,13 @@
-import { QuartzComponentConstructor } from "./types"
+import { QuartzComponentConstructor, QuartzComponentProps } from "./types"
import style from "./styles/search.scss"
// @ts-ignore
import script from "./scripts/search.inline"
+import { classNames } from "../util/lang"
export default (() => {
- function Search() {
+ function Search({ displayClass }: QuartzComponentProps) {
return (
- <div class="search">
+ <div class={classNames(displayClass, "search")}>
<div id="search-icon">
<p>Search</p>
<div></div>
--
Gitblit v1.10.0