mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 20:00:33 +00:00
22 lines
469 B
JavaScript
22 lines
469 B
JavaScript
import React, { useContext } from 'react';
|
|
import { ScrollSyncPane } from 'react-scroll-sync';
|
|
import TableContext from './TableContext';
|
|
|
|
export default function TableTBody({
|
|
children
|
|
}) {
|
|
const {
|
|
table: { getTableBodyProps }
|
|
} = useContext(TableContext);
|
|
|
|
return (
|
|
<ScrollSyncPane>
|
|
<div {...getTableBodyProps()} className="tbody">
|
|
<div class="tbody-inner">
|
|
{ children }
|
|
</div>
|
|
</div>
|
|
</ScrollSyncPane>
|
|
);
|
|
}
|