mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: money in .
This commit is contained in:
27
src/containers/Dialogs/MoneyInDialog/MoneyInFormFields.js
Normal file
27
src/containers/Dialogs/MoneyInDialog/MoneyInFormFields.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import React from 'react';
|
||||
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 { accountId, accountType } = useMoneyInDailogContext();
|
||||
|
||||
return (
|
||||
<div className={Classes.DIALOG_BODY}>
|
||||
<If condition={!accountId}>
|
||||
<TransactionTypeFields />
|
||||
</If>
|
||||
<MoneyInContentFields accountType={accountType} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default MoneyInFormFields;
|
||||
Reference in New Issue
Block a user