Merge pull request #204 from liby/feature/remove-react-fc

chore: remove residual `FC` and `FunctionComponent` from components
This commit is contained in:
DarkSky
2022-08-12 19:52:35 +08:00
committed by GitHub
86 changed files with 97 additions and 121 deletions
@@ -1,4 +1,4 @@
import type { FC, PropsWithChildren } from 'react';
import type { PropsWithChildren } from 'react';
import { styled } from '@toeverything/components/ui';
import type { AsyncBlock } from '../editor';
import { PendantPopover } from './pendant-popover';
@@ -1,4 +1,4 @@
import { FC, useRef } from 'react';
import { useRef } from 'react';
import { AsyncBlock } from '../../editor';
import { PendantHistoryPanel } from '../pendant-history-panel';
import {
@@ -4,7 +4,6 @@ import {
SelectOption,
SelectOptionId,
} from '../recast-block';
import { FunctionComponent } from 'react';
import { TextFontIcon } from '@toeverything/components/icons';
export { PropertyType as PendantTypes } from '../recast-block';
@@ -1,4 +1,3 @@
import type { FC } from 'react';
import type { AsyncBlock } from '../editor';
import { RenderBlock } from './RenderBlock';