mirror of
https://github.com/gosticks/react-table.git
synced 2026-07-01 10:00:03 +00:00
Fix ThComponent classnames ordering (#673)
Allow for custom classname to overwrite base styles
This commit is contained in:
committed by
Tanner Linsley
parent
0783837786
commit
928ad11a07
@@ -182,7 +182,7 @@ export default {
|
||||
TrComponent: _.makeTemplateComponent('rt-tr', 'Tr'),
|
||||
ThComponent: ({ toggleSort, className, children, ...rest }) => (
|
||||
<div
|
||||
className={classnames(className, 'rt-th')}
|
||||
className={classnames('rt-th', className)}
|
||||
onClick={e => (
|
||||
toggleSort && toggleSort(e)
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user