Skip to content

Commit

Permalink
refactor: JSX to TSX
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkim0 committed Jan 19, 2024
1 parent f63ed64 commit 9b4ce7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import React from 'react';
import BlogPostItem from '@theme-original/BlogPostItem';
import {useBlogPost} from '@docusaurus/theme-common/internal';
import Giscus from '@giscus/react';
import type {Props} from '@theme/BlogPostItem';

export default function BlogPostItemWrapper(props) {
export default function BlogPostItemWrapper(props: Props): JSX.Element {
const {isBlogPostPage} = useBlogPost();

return (
Expand Down
3 changes: 2 additions & 1 deletion src/theme/DocItem/index.js → src/theme/DocItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import React from 'react';
import clsx from 'clsx';
import DocItem from '@theme-original/DocItem';
import Giscus from '@giscus/react';
import type {Props} from '@theme/DocItem';

import styles from '@docusaurus/theme-classic/src/theme/DocItem/Layout/styles.module.css';

export default function DocItemWrapper(props) {
export default function DocItemWrapper(props: Props): JSX.Element {
return (
<>
<DocItem {...props} />
Expand Down

0 comments on commit 9b4ce7d

Please sign in to comment.