Skip to content

Commit

Permalink
feat: moved rendering logic to the cell, fixed x/y
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyiegorov committed May 20, 2023
1 parent d9dfb94 commit 8e409ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/cell/cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ const CellComponent = ({ cell, selectedCell }: Props) => {
styles.cell,
cs(isGroupEnd(cell.x), styles.cellGroupXEnd),
cs(isGroupEnd(cell.y), styles.cellGroupYEnd),
cs(isLastRow, styles.cellLastRow),
cs(isCellHighlighted(cell, selectedCell), styles.cellHighlighted),
cs(isActiveValue, styles.cellValueHighlighted),
cs(isActive, styles.cellActive),
cs(isLastRow, styles.cellLastRow),
cs(isLastCol, styles.cellLastCol)
];
const textStyles = [styles.cellText, cs(isActiveValue, styles.cellTextHighlighted), cs(isActive, styles.cellTextActive)];
Expand Down

0 comments on commit 8e409ec

Please sign in to comment.