chore: remove residual FC and FunctionComponent from components

This commit is contained in:
Bryan Lee
2022-08-12 10:56:22 +08:00
parent d3b4906da9
commit 495d9ccc0c
88 changed files with 99 additions and 123 deletions
@@ -10,13 +10,13 @@ import {
getTextProperties,
SelectBlock,
} from '@toeverything/framework/virgo';
import { FC } from 'react';
import { TextView } from './TextView';
export class QuoteBlock extends BaseView {
type = Protocol.Block.Type.quote;
View: FC<CreateView> = TextView;
View: (prop: CreateView) => JSX.Element = TextView;
// override ChildrenView = IndentWrapper;
@@ -83,7 +83,7 @@ export class QuoteBlock extends BaseView {
export class CalloutBlock extends BaseView {
type = Protocol.Block.Type.callout;
View: FC<CreateView> = TextView;
View: (prop: CreateView) => JSX.Element = TextView;
// override ChildrenView = IndentWrapper;