Skip to content

Commit

Permalink
fix(AnalyticalTable): Show selection column with select all in header (
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusNotheis authored Feb 10, 2020
1 parent b293705 commit b60842c
Show file tree
Hide file tree
Showing 9 changed files with 682 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,5 +260,19 @@ describe('AnalyticalTable', () => {
expect(wrapper.render()).toMatchSnapshot();
});

test('without selection Column', () => {
const wrapper = mountThemedComponent(
<AnalyticalTable
title="Table Title"
data={data}
columns={columns}
selectionMode={TableSelectionMode.SINGLE_SELECT}
noSelectionColumn
/>
);

expect(wrapper.render()).toMatchSnapshot();
});

createPassThroughPropsTest(AnalyticalTable);
});
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ const ColumnHeader: FC<ColumnHeaderProps> = (props) => {
) : (
<div style={{ ...innerStyle, display: 'inline-block', cursor: 'auto' }}>{openBy}</div>
)}
<div {...column.getResizerProps()} className={`${classes.resizer} ${isLastColumn ? classes.lastColumn : ''}`} />
{column.getResizerProps && (
<div {...column.getResizerProps()} className={`${classes.resizer} ${isLastColumn ? classes.lastColumn : ''}`} />
)}
</div>
);
};
Loading

0 comments on commit b60842c

Please sign in to comment.