Fix ThComponent classnames ordering (#673)

Allow for custom classname to overwrite base styles
This commit is contained in:
Edward Bramanti 2017-12-12 15:05:31 -08:00 committed by Tanner Linsley
parent 0783837786
commit 928ad11a07

View File

@ -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)
)}