Skip to content

Commit

Permalink
feat: removed row position from column configs (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran McDade authored and Fran McDade committed Nov 25, 2024
1 parent 5c5e3d8 commit ff23a9a
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/components/TableCreator/common/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { RowData } from "@tanstack/react-table";
import { TABLE_CELL_PROPS } from "../../../styles/common/mui/tableCell";
import { RowPositionCell } from "../../Table/components/TableCell/components/RowPositionCell/rowPositionCell";
import { RowSelectionCell } from "../../Table/components/TableCell/components/RowSelectionCell/rowSelectionCell";
import { BaseColumnConfig } from "./entities";

Expand All @@ -13,23 +11,6 @@ export const COLUMN_CONFIGS: Record<
string,
BaseColumnConfig<RowData, unknown>
> = {
ROW_POSITION: {
columnPinned: false,
columnVisible: false,
componentConfig: {
component: RowPositionCell,
viewBuilder: (_, viewContext) => viewContext?.cellContext,
},
disableHiding: true,
disableSorting: true,
header: "",
id: ACCESSOR_KEYS.ROW_POSITION,
meta: {
align: TABLE_CELL_PROPS.ALIGN.RIGHT,
header: "",
},
width: "max-content",
},
SELECT: {
columnPinned: false,
columnVisible: false,
Expand Down

0 comments on commit ff23a9a

Please sign in to comment.