mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
27 lines
699 B
TypeScript
27 lines
699 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import { useFormikContext } from 'formik';
|
|
import { Classes } from '@blueprintjs/core';
|
|
|
|
import { If } from '@/components';
|
|
import MoneyInContentFields from './MoneyInContentFields';
|
|
import TransactionTypeFields from './TransactionTypeFields';
|
|
import { useMoneyInDailogContext } from './MoneyInDialogProvider';
|
|
|
|
/**
|
|
* Money in form fields.
|
|
*/
|
|
function MoneyInFormFields() {
|
|
// Money in dialog context.
|
|
const { defaultAccountId } = useMoneyInDailogContext();
|
|
|
|
return (
|
|
<div className={Classes.DIALOG_BODY}>
|
|
{!defaultAccountId && <TransactionTypeFields />}
|
|
<MoneyInContentFields />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default MoneyInFormFields;
|