From 803b6b8e10f77796cd63f5ded072edbedccbd472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=87=E8=B6=A3=E4=BF=9D=E7=BD=97?= Date: Thu, 5 Sep 2024 02:20:21 +0800 Subject: [PATCH] fix component props --- components/ui/tab/index.tsx | 2 +- contents/read.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ui/tab/index.tsx b/components/ui/tab/index.tsx index 8e3870e..f225fd8 100644 --- a/components/ui/tab/index.tsx +++ b/components/ui/tab/index.tsx @@ -5,7 +5,7 @@ import type { ReactNode, PropsWithChildren } from "react"; import styles from "./tab.module.less"; interface TabProps extends PropsWithChildren { - className: string; + className?: string; } interface HeaderProps { diff --git a/contents/read.ts b/contents/read.ts index fbd915c..988623d 100644 --- a/contents/read.ts +++ b/contents/read.ts @@ -6,11 +6,11 @@ const getTitle = () => { const metaOgTitle = document.querySelector(`meta[name="og:title"]`); if (metaOgTitle) { - return metaOgTitle.getAttribute("content");; + return metaOgTitle.getAttribute("content"); } if (metaTitle) { - return metaTitle.getAttribute("content");; + return metaTitle.getAttribute("content"); } if (title.includes(" - ")) {