Skip to content

Commit

Permalink
chore: fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
soslayando committed Nov 21, 2023
1 parent c141f57 commit 7027df5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/table/src/core/Cell/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Cell: React.FC<CellProps> = ({
columnDef,
cellWidth,
cellFlex,
virtualColumn,
//virtualColumn,
}) => {
const { onReset } = columnDef;

Expand Down
2 changes: 1 addition & 1 deletion packages/table/src/core/Cell/StyledTableCell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface StyledTableCellWrapperProps {
}

export const StyledTableCell = styled.td.attrs(
({ cellFlex, cellWidth, theme }: StyledTableCellWrapperProps) => ({
({ cellWidth, theme }: StyledTableCellWrapperProps) => ({
style: {
//flex: cellFlex,
width: cellWidth,
Expand Down
3 changes: 1 addition & 2 deletions packages/table/src/core/HeaderCell/HeaderCell.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { VirtualItem } from '@tanstack/react-virtual';
import React from 'react';
import { ColDef } from '../../declarations';
import { TextRenderer } from '../../renderers';
import { StyledHeaderCell } from './StyledHeaderCell';
import { Typography } from '@devoinc/genesys-ui';

Expand All @@ -18,7 +17,7 @@ export const HeaderCell: React.FC<HeaderCellProps> = ({
colDef,
headerCellFlex,
headerCellWidth,
virtualColumn,
//virtualColumn,
}) => (
<StyledHeaderCell
scrolled={scrolled}
Expand Down
3 changes: 3 additions & 0 deletions packages/table/src/core/Row/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,22 @@ import { getColDefByID } from '../utils';
interface RowProps {
columnDefs: ColDef[];
data: { [key: string]: unknown };
even: boolean;
styles?: React.CSSProperties;
columnVirtualizer: Virtualizer<undefined, Element>;
}

export const Row: React.FC<RowProps> = ({
columnDefs,
data,
even,
styles,
columnVirtualizer,
}) => {
const columnsNumber = columnDefs.length;
return (
<StyledTableRow
even={even}
position={styles.position}
width={styles.width}
height={styles.height}
Expand Down
1 change: 1 addition & 0 deletions packages/table/src/core/Row/StyledTableRow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import styled from 'styled-components';

interface StyledTableRowProps {
even: boolean;
position?: React.CSSProperties['position'];
width?: React.CSSProperties['width'];
height?: React.CSSProperties['height'];
Expand Down
1 change: 1 addition & 0 deletions packages/table/src/core/TableBody/TableBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const TableBody: React.FC<TableBodyProps> = ({
columnDefs={columnDefs}
columnVirtualizer={columnVirtualizer}
data={data[virtualRow.index]}
even={(index + 1) % 2 === 0}
styles={{
height: `${virtualRow.size}px`,
transform: `translateY(${
Expand Down

0 comments on commit 7027df5

Please sign in to comment.