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

chore: remove residual `FC` and `FunctionComponent` from components
This commit is contained in:
DarkSky authored and GitHub committed 2022-08-12 19:52:35 +08:00
commit b61a34e48c
86 files changed
+97 -121

No files matched your search

@@ -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';