style: enable react/react-in-jsx-scope lint rule (#1107)

This commit is contained in:
Himself65
2023-02-17 20:09:52 -06:00
committed by GitHub
parent 5f0015f522
commit 6378547a0e
28 changed files with 34 additions and 51 deletions

View File

@@ -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) {

View File

@@ -1,7 +1,7 @@
import { HTMLAttributes, PropsWithChildren } from 'react';
import React from 'react';
import { StyledTableBody } from './styles';
export const TableBody = ({
children,
...props

View File

@@ -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

View File

@@ -1,4 +1,5 @@
import { HTMLAttributes, PropsWithChildren } from 'react';
import React from 'react';
import { StyledTableHead } from './styles';

View File

@@ -1,7 +1,7 @@
import { HTMLAttributes, PropsWithChildren } from 'react';
import React from 'react';
import { StyledTableRow } from './styles';
export const TableRow = ({
children,
...props