mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat: Money in & out Dialog.
This commit is contained in:
20
src/containers/Dialogs/MoneyInDialog/MoneyInDialogForm.js
Normal file
20
src/containers/Dialogs/MoneyInDialog/MoneyInDialogForm.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import React from 'react';
|
||||
import OwnerContributionForm from './OwnerContribution/OwnerContributionForm';
|
||||
import OtherIncomeForm from './OtherIncome/OtherIncomeForm';
|
||||
|
||||
export default function MoneyInDialogForm({ accountType }) {
|
||||
// Handle from transaction.
|
||||
const handleFromTransaction = () => {
|
||||
switch (accountType) {
|
||||
case 'OWNERS':
|
||||
return <OwnerContributionForm />;
|
||||
|
||||
case 'EQUITY':
|
||||
return <OtherIncomeForm />;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
return <div>{handleFromTransaction()}</div>;
|
||||
}
|
||||
Reference in New Issue
Block a user