mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat(expenses): add expense form top bar.
This commit is contained in:
@@ -5,18 +5,22 @@ import 'style/pages/Expense/PageForm.scss';
|
||||
|
||||
import ExpenseForm from './ExpenseForm';
|
||||
import { ExpenseFormPageProvider } from './ExpenseFormPageProvider';
|
||||
|
||||
import withCurrentOrganization from 'containers/Organization/withCurrentOrganization';
|
||||
import { compose } from 'utils';
|
||||
/**
|
||||
* Expense page form.
|
||||
*/
|
||||
export default function ExpenseFormPage() {
|
||||
function ExpenseFormPage({
|
||||
// #withCurrentOrganization
|
||||
organization: { base_currency },
|
||||
}) {
|
||||
const { id } = useParams();
|
||||
const expenseId = parseInt(id, 10);
|
||||
|
||||
return (
|
||||
<ExpenseFormPageProvider expenseId={expenseId}>
|
||||
<ExpenseFormPageProvider expenseId={expenseId} baseCurrency={base_currency}>
|
||||
<ExpenseForm />
|
||||
</ExpenseFormPageProvider>
|
||||
);
|
||||
}
|
||||
|
||||
export default compose(withCurrentOrganization())(ExpenseFormPage);
|
||||
|
||||
Reference in New Issue
Block a user