From 19a78c07048aac5c05c77d230f7d1e19138813bb Mon Sep 17 00:00:00 2001 From: PrinOrange Date: Sat, 28 Sep 2024 22:13:37 +0800 Subject: [PATCH] [fix] fix some problem in code style --- components/mdx/H2.tsx | 2 +- components/reader-page/PostRender.tsx | 2 +- pages/search.tsx | 2 +- types/docs.type.ts | 2 -- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/components/mdx/H2.tsx b/components/mdx/H2.tsx index 46e022b..9f48e0e 100644 --- a/components/mdx/H2.tsx +++ b/components/mdx/H2.tsx @@ -1,6 +1,6 @@ const H2 = (props: JSX.IntrinsicElements["h2"]) => { return ( -

+

{props.children}

); diff --git a/components/reader-page/PostRender.tsx b/components/reader-page/PostRender.tsx index 505cc96..8c8e99b 100644 --- a/components/reader-page/PostRender.tsx +++ b/components/reader-page/PostRender.tsx @@ -19,7 +19,7 @@ export const PostRender = (props: {
{props.frontMatter?.title} diff --git a/pages/search.tsx b/pages/search.tsx index c32a1ed..4333990 100644 --- a/pages/search.tsx +++ b/pages/search.tsx @@ -24,7 +24,7 @@ export default function SearchPage(props: SearchPageProps) { const { toast } = useToast(); const fetchSearchAPI = (param: string): Promise => { - setIsLoading(true) + setIsLoading(true); return axios.get(`/api/search/${param}`).then((response) => response.data); }; diff --git a/types/docs.type.ts b/types/docs.type.ts index 9cf121f..7bfc869 100644 --- a/types/docs.type.ts +++ b/types/docs.type.ts @@ -1,5 +1,3 @@ -import type { TPostFrontmatter } from "./frontmatter.type"; - export type TPostListItem = { id: string; frontMatter: TPostFrontmatter;