refactoring: account form.

refactoring: expense form.
refactoring: manual journal form.
refactoring: invoice form.
This commit is contained in:
a.bouhuolia
2021-02-15 12:03:47 +02:00
parent 692f3b333a
commit 760c38b54b
124 changed files with 2694 additions and 2967 deletions

View File

@@ -0,0 +1,29 @@
import React, { useContext } from 'react';
import TableContext from './TableContext';
/**
* Table footer.
*/
export default function TableFooter() {
const {
table: { footerGroups },
} = useContext(TableContext);
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>
);
}