Add new prop to Caption component

Add new prop of Caption component in order to check if
bootstrap is in use
This commit is contained in:
Ymbere Xavier 2019-12-04 01:50:26 -02:00
parent 8ecdbf611b
commit 1d13565824

View File

@ -83,7 +83,9 @@ class BootstrapTable extends PropsBaseResolver(Component) {
const hasFooter = _.filter(columns, col => _.has(col, 'footer')).length > 0;
const tableCaption = (caption && <Caption>{ caption }</Caption>);
const tableCaption = (
caption && <Caption bootstrap4={ bootstrap4 }>{ caption }</Caption>
);
return (
<div className={ tableWrapperClass }>