mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 01:01:38 +00:00
Upgrade to React 18
This commit is contained in:
@ -1,10 +1,9 @@
|
||||
import { FC } from 'react';
|
||||
import Giscus from '@giscus/react';
|
||||
import { useTheme } from 'next-themes';
|
||||
import useInView from 'lib/hooks/useInView';
|
||||
import Image from 'next/image';
|
||||
|
||||
const PostComment: FC = () => {
|
||||
const PostComment = () => {
|
||||
const { systemTheme, theme } = useTheme();
|
||||
const currentTheme = theme === 'system' ? systemTheme : theme;
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
import { FC } from 'react';
|
||||
import { getHeadings } from 'lib/utils';
|
||||
import Anchor from 'components/mdx/Anchor';
|
||||
|
||||
@ -6,7 +5,7 @@ interface Props {
|
||||
headings: ReturnType<typeof getHeadings>;
|
||||
}
|
||||
|
||||
const PostTOC: FC<Props> = ({ headings }) => {
|
||||
const PostTOC = ({ headings }: Props) => {
|
||||
return (
|
||||
<>
|
||||
<h2>What's inside?</h2>
|
||||
|
Reference in New Issue
Block a user