mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
chrone: sperate client and server to different repos.
This commit is contained in:
18
src/containers/Drawers/ExpenseDrawer/ExpenseDrawerTable.js
Normal file
18
src/containers/Drawers/ExpenseDrawer/ExpenseDrawerTable.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import { DataTable } from 'components';
|
||||
import { useExpenseReadEntriesColumns } from './utils';
|
||||
import { useExpenseDrawerContext } from './ExpenseDrawerProvider';
|
||||
|
||||
/**
|
||||
* Expense details table.
|
||||
*/
|
||||
export default function ExpenseDrawerTable() {
|
||||
const columns = useExpenseReadEntriesColumns();
|
||||
const { expense } = useExpenseDrawerContext();
|
||||
|
||||
return (
|
||||
<div className="expense-drawer__content--table">
|
||||
<DataTable columns={columns} data={expense.categories} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user