Skip to content

Commit

Permalink
custom class for column type
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamk54 committed Dec 30, 2020
1 parent cefc0c4 commit 6242591
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mui-datatables-vg",
"version": "3.5.1-beta.4",
"version": "3.5.1-beta.5",
"description": "Datatables for React using Material-UI",
"main": "dist/index.js",
"files": [
Expand All @@ -20,7 +20,7 @@
"lint": "eslint src",
"build": "cross-env NODE_ENV=production npm run prettier && rollup -c",
"prepare": "npm run build",
"publish": "npm publish --access public"
"publish-command": "npm publish --access public"
},
"keywords": [
"material-ui",
Expand Down
1 change: 0 additions & 1 deletion src/components/TableBodyGroupDataRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const defaultBodyStyles = theme => ({

function TableBodyGroupDataRow(props) {
const { row } = props;
console.dir(props);
return (
<TableBodyRows
tableRows={row.data.data}
Expand Down
4 changes: 2 additions & 2 deletions src/components/TableBodyGroupHeaderRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ function TableBodyGroupHeaderRow(props) {
<div className={classes.columnValue}>{row.columnValue}</div>
</TableCell>

{columns.map(col => {
{columns.map((col, colIndex) => {
if (col.type !== 'prim-group' && col.display !== 'false') {
return (
<TableCell className={classes.tableRow}>
<TableCell key={colIndex} className={classes.tableRow}>
<div className={`${col.type}-column-cell`}>{aggData[row.id] ? aggData[row.id][col.name] : ''}</div>
</TableCell>
);
Expand Down

0 comments on commit 6242591

Please sign in to comment.