From 6395e0bbe5f21308977eaba4064f61c122507551 Mon Sep 17 00:00:00 2001 From: or-forshmit8 Date: Thu, 9 Apr 2026 21:55:30 +0300 Subject: [PATCH 1/2] refactor: reorganize input fields in TransactionForm for improved layout --- src/components/TransactionForm.jsx | 66 +++++++++++++++--------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/components/TransactionForm.jsx b/src/components/TransactionForm.jsx index 1169cf0..de073f1 100644 --- a/src/components/TransactionForm.jsx +++ b/src/components/TransactionForm.jsx @@ -183,7 +183,7 @@ export function TransactionForm({ initial, defaultName, defaultPaymentMethod, on return (
-
+
- {form.type === 'credit_card' && ( - - )} +
+ + + {errors.type && ( +

{errors.type}

+ )} +
-
- - - {errors.type && ( -

{errors.type}

+ {form.type === 'credit_card' && ( + )} -
Date: Thu, 9 Apr 2026 22:15:56 +0300 Subject: [PATCH 2/2] fix: enhance accessibility and layout in TransactionForm input fields --- src/components/TransactionForm.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/TransactionForm.jsx b/src/components/TransactionForm.jsx index de073f1..ca674d9 100644 --- a/src/components/TransactionForm.jsx +++ b/src/components/TransactionForm.jsx @@ -182,7 +182,7 @@ export function TransactionForm({ initial, defaultName, defaultPaymentMethod, on return ( -
+
-