mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 23:26:30 +08:00
chore: strict eslint check (#1084)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { cloneElement, Children, forwardRef } from 'react';
|
||||
import { StyledButton } from './styles';
|
||||
import { Children, cloneElement, forwardRef } from 'react';
|
||||
|
||||
import { ButtonProps } from './interface';
|
||||
import { getSize } from './utils';
|
||||
import { Loading } from './Loading';
|
||||
import { StyledButton } from './styles';
|
||||
import { getSize } from './utils';
|
||||
|
||||
export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
|
||||
(
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import {
|
||||
HTMLAttributes,
|
||||
cloneElement,
|
||||
ReactElement,
|
||||
Children,
|
||||
cloneElement,
|
||||
CSSProperties,
|
||||
forwardRef,
|
||||
HTMLAttributes,
|
||||
ReactElement,
|
||||
} from 'react';
|
||||
|
||||
import { StyledIconButton } from './styles';
|
||||
|
||||
const SIZE_SMALL = 'small' as const;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { cloneElement, Children, forwardRef } from 'react';
|
||||
import { StyledTextButton } from './styles';
|
||||
import { Children, cloneElement, forwardRef } from 'react';
|
||||
|
||||
import { ButtonProps } from './interface';
|
||||
import { StyledTextButton } from './styles';
|
||||
import { getSize } from './utils';
|
||||
|
||||
export const TextButton = forwardRef<HTMLButtonElement, ButtonProps>(
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export * from './IconButton';
|
||||
export * from './Button';
|
||||
export * from './IconButton';
|
||||
export * from './TextButton';
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { absoluteCenter, displayInlineFlex, styled } from '../../styles';
|
||||
import { CSSProperties } from 'react';
|
||||
|
||||
import { absoluteCenter, displayInlineFlex, styled } from '../../styles';
|
||||
import { ButtonProps } from './interface';
|
||||
import { getSize, getButtonColors } from './utils';
|
||||
import { getButtonColors, getSize } from './utils';
|
||||
|
||||
export const StyledIconButton = styled('button', {
|
||||
shouldForwardProp: prop => {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { AffineTheme } from '../../styles';
|
||||
import {
|
||||
SIZE_SMALL,
|
||||
SIZE_MIDDLE,
|
||||
SIZE_DEFAULT,
|
||||
ButtonProps,
|
||||
SIZE_DEFAULT,
|
||||
SIZE_MIDDLE,
|
||||
SIZE_SMALL,
|
||||
} from './interface';
|
||||
|
||||
// TODO: Designer is not sure about the size, Now, is just use default size
|
||||
|
||||
Reference in New Issue
Block a user