Skip to content

Commit 829ed39

Browse files
committed
Remove unused React import and add type declaration for GiscusComments component
1 parent be3149c commit 829ed39

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/components/GiscusComments/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import Giscus from '@giscus/react';
32
import { useColorMode } from '@docusaurus/theme-common';
43
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';

src/types/global.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module '@site/src/components/GiscusComments' {
2+
const GiscusComments: React.FC;
3+
export default GiscusComments;
4+
}

0 commit comments

Comments
 (0)