feat: Money in & out Dialog.

This commit is contained in:
elforjani13
2021-10-13 19:56:48 +02:00
parent b848553cf7
commit 2078b6bc99
29 changed files with 1458 additions and 11 deletions

View 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>;
}