From e73d5e2721fc987b4a884467fca8223fab572148 Mon Sep 17 00:00:00 2001 From: shats Date: Mon, 1 Dec 2025 16:28:40 +0700 Subject: [PATCH] feat: Replace status selection in BillingManager forms with button group for improved user interaction and visual clarity, enhancing the overall UI experience. --- frontend/src/BillingManager.jsx | 64 +++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 26 deletions(-) diff --git a/frontend/src/BillingManager.jsx b/frontend/src/BillingManager.jsx index 30b4cdb..9dd8d7b 100644 --- a/frontend/src/BillingManager.jsx +++ b/frontend/src/BillingManager.jsx @@ -1578,11 +1578,6 @@ function BillingManager() { // Компоненты форм для модальных окон function AddBillingForm({ item, onItemChange, servers }) { - const statusOptions = [ - { value: 'active', label: 'Активен' }, - { value: 'inactive', label: 'Неактивен' } - ]; - const currencyOptions = [ { value: 'USD', label: 'USD' }, { value: 'EUR', label: 'EUR' }, @@ -1659,14 +1654,25 @@ function AddBillingForm({ item, onItemChange, servers }) { />
- onItemChange({ ...item, status: value })} - options={statusOptions} - /> +
+ +
+
+ + +
{/* Текущие платежи */} @@ -1718,11 +1724,6 @@ function AddBillingForm({ item, onItemChange, servers }) { } function EditBillingForm({ item, onItemChange, servers }) { - const statusOptions = [ - { value: 'active', label: 'Активен' }, - { value: 'inactive', label: 'Неактивен' } - ]; - const currencyOptions = [ { value: 'USD', label: 'USD' }, { value: 'EUR', label: 'EUR' }, @@ -1799,14 +1800,25 @@ function EditBillingForm({ item, onItemChange, servers }) { />
- onItemChange({ ...item, status: value })} - options={statusOptions} - /> +
+ +
+
+ + +
{/* Текущие платежи */}