mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix: page forms style. feat: auto-fill items entries from item details. fix: hiding dashboard copyright bar.
34 lines
753 B
JavaScript
34 lines
753 B
JavaScript
import React, { useContext } from 'react';
|
|
import TableContext from './TableContext';
|
|
|
|
/**
|
|
* Table footer.
|
|
*/
|
|
export default function TableFooter() {
|
|
const {
|
|
props: { footer },
|
|
table: { footerGroups },
|
|
} = useContext(TableContext);
|
|
|
|
// Can't contiunue if the footer is disabled.
|
|
if (!footer) { return null; }
|
|
|
|
return (
|
|
<div class="tfooter">
|
|
{footerGroups.map((group) => (
|
|
<div {...group.getFooterGroupProps({ className: 'tr' })}>
|
|
{group.headers.map((column) => (
|
|
<div
|
|
{...column.getFooterProps({
|
|
className: 'td',
|
|
})}
|
|
>
|
|
{column.render('Footer')}
|
|
</div>
|
|
))}
|
|
</div>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|