fix component props
This commit is contained in:
parent
ef23dda691
commit
803b6b8e10
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ const getTitle = () => {
|
|||
const metaOgTitle = document.querySelector<HTMLMetaElement>(`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(" - ")) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue