From b8c2d0ff3c4b7192a0d30359a05514668296bc09 Mon Sep 17 00:00:00 2001 From: Wikzyy Date: Wed, 9 Apr 2025 15:16:36 +0700 Subject: [PATCH] update edit provider - add field currency --- src/pages/master/wallet/blocks/EditDialog.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/pages/master/wallet/blocks/EditDialog.tsx b/src/pages/master/wallet/blocks/EditDialog.tsx index adce821..14a3574 100644 --- a/src/pages/master/wallet/blocks/EditDialog.tsx +++ b/src/pages/master/wallet/blocks/EditDialog.tsx @@ -53,11 +53,13 @@ const EditDialog = () => { name: string; description: string; status: string; + currency_id: string; group: string[]; } = { name: '', description: '', status: '', + currency_id: '', group: [] }; const [formField, setFormField] = useState(initialState); @@ -164,6 +166,8 @@ const EditDialog = () => { } }; + const selectedCurrency = currencies.find((currency) => currency.ID === formField.currency_id); + const selectedGroupNames = groups .filter((g) => formField.group.includes(g.id)) .map((g) => g.name) @@ -257,6 +261,21 @@ const EditDialog = () => { +
+
+ +
+ +
+
+
+