mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 19:16:29 +08:00
style: remove unused import (#1113)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { Children, cloneElement, forwardRef } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { ButtonProps } from './interface';
|
||||
import { Loading } from './Loading';
|
||||
|
||||
@@ -6,7 +6,6 @@ import {
|
||||
HTMLAttributes,
|
||||
ReactElement,
|
||||
} from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { StyledIconButton } from './styles';
|
||||
const SIZE_SMALL = 'small' as const;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import React from 'react';
|
||||
|
||||
import { styled } from '../../styles';
|
||||
import { ButtonProps } from './interface';
|
||||
import { getButtonColors } from './utils';
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Children, cloneElement, forwardRef } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { ButtonProps } from './interface';
|
||||
import { StyledTextButton } from './styles';
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { useTranslation } from '@affine/i18n';
|
||||
import { useState } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { Button } from '../button';
|
||||
import { Modal, ModalCloseButton, ModalProps } from '../modal';
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { CSSProperties } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { EmptySVG } from './EmptySVG';
|
||||
import { StyledEmptyContainer } from './style';
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';
|
||||
import React from 'react';
|
||||
|
||||
export const EmptySVG = (props: SvgIconProps) => {
|
||||
return (
|
||||
|
||||
@@ -6,7 +6,6 @@ import {
|
||||
useEffect,
|
||||
useState,
|
||||
} from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { StyledInput } from './style';
|
||||
type inputProps = {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { TooltipProps } from '@mui/material';
|
||||
import React from 'react';
|
||||
|
||||
import { Popper, type PopperProps } from '../popper';
|
||||
import { StyledMenuWrapper } from './styles';
|
||||
|
||||
@@ -5,7 +5,6 @@ import {
|
||||
PropsWithChildren,
|
||||
ReactElement,
|
||||
} from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { StyledArrow, StyledMenuItem } from './styles';
|
||||
export type IconMenuProps = PropsWithChildren<{
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { ModalUnstyledOwnProps } from '@mui/base/ModalUnstyled';
|
||||
import Fade from '@mui/material/Fade';
|
||||
import React from 'react';
|
||||
|
||||
import { StyledBackdrop, StyledModal } from './styles';
|
||||
const Backdrop = ({
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { CloseIcon } from '@blocksuite/icons';
|
||||
import { HTMLAttributes } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { styled } from '../../styles';
|
||||
import { IconButton, IconButtonProps } from '../button/IconButton';
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { forwardRef } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { styled } from '../../styles';
|
||||
import { PopperArrowProps } from './interface';
|
||||
|
||||
@@ -9,7 +9,6 @@ import {
|
||||
useRef,
|
||||
useState,
|
||||
} from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { styled } from '../../styles';
|
||||
import { PopperProps, VirtualElement } from './interface';
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Children, HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { StyledTable } from './styles';
|
||||
const childrenHasEllipsis = (children: ReactNode | ReactNode[]): boolean => {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { HTMLAttributes, PropsWithChildren } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { StyledTableBody } from './styles';
|
||||
export const TableBody = ({
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { HTMLAttributes, PropsWithChildren } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { TableCellProps } from './interface';
|
||||
import { StyledTableCell } from './styles';
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { HTMLAttributes, PropsWithChildren } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { StyledTableHead } from './styles';
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { HTMLAttributes, PropsWithChildren } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { StyledTableRow } from './styles';
|
||||
export const TableRow = ({
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { TooltipProps } from '@mui/material';
|
||||
import React from 'react';
|
||||
|
||||
import { styled } from '../../styles';
|
||||
import { Popper, type PopperProps } from '../popper';
|
||||
|
||||
Reference in New Issue
Block a user