mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
style: enable react/react-in-jsx-scope lint rule (#1107)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Children, HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { StyledTable } from './styles';
|
||||
|
||||
const childrenHasEllipsis = (children: ReactNode | ReactNode[]): boolean => {
|
||||
return Children.toArray(children).some(child => {
|
||||
if (typeof child === 'object' && 'props' in child) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { HTMLAttributes, PropsWithChildren } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { StyledTableBody } from './styles';
|
||||
|
||||
export const TableBody = ({
|
||||
children,
|
||||
...props
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { HTMLAttributes, PropsWithChildren } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { TableCellProps } from './interface';
|
||||
import { StyledTableCell } from './styles';
|
||||
|
||||
export const TableCell = ({
|
||||
children,
|
||||
...props
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { HTMLAttributes, PropsWithChildren } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { StyledTableHead } from './styles';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { HTMLAttributes, PropsWithChildren } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import { StyledTableRow } from './styles';
|
||||
|
||||
export const TableRow = ({
|
||||
children,
|
||||
...props
|
||||
|
||||
Reference in New Issue
Block a user