From 647c1316ba176cc9614bb32dcc2f3dc781ca9228 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Tue, 9 Jun 2026 16:34:27 -0500 Subject: [PATCH] refactor(M3U): enhance form layout and streamline input handling - Increased modal size for better visibility and user experience. - Adjusted form layout for improved alignment and spacing between elements. - Removed unused Checkbox component and simplified the account type selection logic. - Consolidated VOD-related input fields under the Xtream Codes account type for clarity. - Enhanced overall readability and maintainability of the component by reducing complexity in the form structure. --- frontend/src/components/forms/M3U.jsx | 221 +++++++++++++------------- 1 file changed, 111 insertions(+), 110 deletions(-) diff --git a/frontend/src/components/forms/M3U.jsx b/frontend/src/components/forms/M3U.jsx index bfc015de..07b430ef 100644 --- a/frontend/src/components/forms/M3U.jsx +++ b/frontend/src/components/forms/M3U.jsx @@ -6,7 +6,6 @@ import M3UProfiles from './M3UProfiles'; import { Box, Button, - Checkbox, Divider, FileInput, Flex, @@ -58,7 +57,8 @@ const M3U = ({ const [filterModalOpen, setFilterModalOpen] = useState(false); const [scheduleType, setScheduleType] = useState('interval'); const [serverGroupsManagerOpen, setServerGroupsManagerOpen] = useState(false); - const [serverGroupsCreateOnOpen, setServerGroupsCreateOnOpen] = useState(false); + const [serverGroupsCreateOnOpen, setServerGroupsCreateOnOpen] = + useState(false); const form = useForm({ mode: 'uncontrolled', @@ -212,7 +212,7 @@ const M3U = ({ return ( <>
- - + + - Manage server groups -