Refactor Invoices Component for Improved Readability and Structure
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- 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.
This commit is contained in:
parent
5ad0008122
commit
8438757db5
@ -26,12 +26,8 @@ const Invoices = () => {
|
|||||||
const [showSortSidebar, setShowSortSidebar] =
|
const [showSortSidebar, setShowSortSidebar] =
|
||||||
useSortSidebarVisibility('Invoices')
|
useSortSidebarVisibility('Invoices')
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ObjectListViewProvider
|
<ObjectListViewProvider objectType='invoice' tableRef={tableRef}>
|
||||||
objectType='invoice'
|
|
||||||
tableRef={tableRef}
|
|
||||||
>
|
|
||||||
<Flex vertical={'true'} gap='large' className='h-100'>
|
<Flex vertical={'true'} gap='large' className='h-100'>
|
||||||
<Flex justify='space-between' style={{ minHeight: 0 }} gap='small'>
|
<Flex justify='space-between' style={{ minHeight: 0 }} gap='small'>
|
||||||
<Space size='small'>
|
<Space size='small'>
|
||||||
@ -58,9 +54,7 @@ const Invoices = () => {
|
|||||||
active={showFilterSidebar}
|
active={showFilterSidebar}
|
||||||
onClick={() => setShowFilterSidebar(!showFilterSidebar)}
|
onClick={() => setShowFilterSidebar(!showFilterSidebar)}
|
||||||
/>
|
/>
|
||||||
<ObjectTableViewButton
|
<ObjectTableViewButton objectType='invoice' />
|
||||||
objectType='invoice'
|
|
||||||
/>
|
|
||||||
<ListViewEditButtons showStartingDivider={true} />
|
<ListViewEditButtons showStartingDivider={true} />
|
||||||
</Space>
|
</Space>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user