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(" - ")) {