mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 21:38:44 +08:00
chore: remove residual FC and FunctionComponent from components
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user