+ {edit ?
Edit Transaction
:
Create Transaction
}
+
+
+
+
+
+ {selectedType == transactionCategory.INCOME ? (
+
+ ) : (
+
+ )}
+
setOther(event.target.value)}
+ >
+
+
+
+
+
+
+
+
handleCurrencyChange(event, setAmount)}
+ onBlur={(event) => handleCurrencyBlur(event, amount, setAmount)}
+ placeholder="0.00"
+ />
+
+
+
+
setSelectedDate(event.target.value)}
+ />
+
+
+ {edit ? null : (
+ <>
+
+ {!edit && selectedAccount && (
+
{
+ if (addTransaction) {
+ newTxs.forEach((tx) => addTransaction(tx));
+ }
+ }}
+ />
+ )}
+ >
+ )}
+
+
+
+
+ {edit ? (
+
+ ) : (
+
+ )}
+
+