Skip to content

Commit

Permalink
fix: fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyxh committed May 7, 2024
1 parent 3e83993 commit fa675aa
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 52 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@types/lodash-es": "^4.17.12",
"@types/mapbox__rehype-prism": "^0.8.3",
"@types/mdx": "^2.0.13",
"@types/node": "^20.12.8",
"@types/node": "^20.12.10",
"@types/nprogress": "^0.2.3",
"@types/qs": "^6.9.15",
"@types/react": "^18.3.1",
Expand Down
98 changes: 49 additions & 49 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/viewer/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { createElement, useId, useMemo } from 'react';
import { Anchor, Divider } from 'antd';
import type { AnchorLinkItemProps } from 'antd/es/anchor/Anchor';

import type { Meta } from '@/router';
import { Link, useLocation } from '@/router';

import { Icon } from '@/components';
Expand Down Expand Up @@ -185,7 +184,7 @@ export const useMDXComponents = (): MDXComponents => {
wrapper(props) {
return <Wrapper>{props.children}</Wrapper>;
},
Header(props: { frontmatter: Meta }) {
Header(props: { frontmatter: { title: string } }) {
return (
<header>
<h1>{props.frontmatter.title}</h1>
Expand Down

0 comments on commit fa675aa

Please sign in to comment.