From 8438757db536506fd83a332a93b6ac995e79ad6d Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sat, 5 Sep 2026 01:59:30 +0100 Subject: [PATCH] Refactor Invoices Component for Improved Readability and Structure - Streamlined the JSX structure in the Invoices component for better readability. - Removed unnecessary line breaks and adjusted indentation for consistent formatting. - Enhanced the organization of child components within the ObjectListViewProvider for clearer hierarchy. --- src/components/Dashboard/Finance/Invoices.jsx | 26 +++++++------------ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/src/components/Dashboard/Finance/Invoices.jsx b/src/components/Dashboard/Finance/Invoices.jsx index 7bb8bcfe..fb716014 100644 --- a/src/components/Dashboard/Finance/Invoices.jsx +++ b/src/components/Dashboard/Finance/Invoices.jsx @@ -26,15 +26,11 @@ const Invoices = () => { const [showSortSidebar, setShowSortSidebar] = useSortSidebarVisibility('Invoices') - return ( - - - - + + + + { /> - - + + setShowSortSidebar(!showSortSidebar)} @@ -58,12 +54,10 @@ const Invoices = () => { active={showFilterSidebar} onClick={() => setShowFilterSidebar(!showFilterSidebar)} /> - + - + { useSortInSession={true} useSortInUrl={true} /> - - + + ) }