mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 03:26:47 +08:00
chore: remove residual FC and FunctionComponent from components
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { BlockEditor } from './editor';
|
||||
import { styled, usePatchNodes } from '@toeverything/components/ui';
|
||||
import type { FC, PropsWithChildren } from 'react';
|
||||
import type { PropsWithChildren } from 'react';
|
||||
import React, { useEffect, useRef, useState, useCallback } from 'react';
|
||||
import { EditorProvider } from './Contexts';
|
||||
import { SelectionRect, SelectionRef } from './Selection';
|
||||
|
||||
@@ -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,5 +1,5 @@
|
||||
import { styled } from '@toeverything/components/ui';
|
||||
import { FC, useLayoutEffect, useMemo, useRef } from 'react';
|
||||
import { useLayoutEffect, useMemo, useRef } from 'react';
|
||||
|
||||
// import { RenderChildren } from './RenderChildren';
|
||||
import { useEditor } from '../Contexts';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { FC } from 'react';
|
||||
import type { AsyncBlock } from '../editor';
|
||||
import { RenderBlock } from './RenderBlock';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user