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] =
|
||||
useSortSidebarVisibility('Invoices')
|
||||
|
||||
|
||||
return (
|
||||
<ObjectListViewProvider
|
||||
objectType='invoice'
|
||||
tableRef={tableRef}
|
||||
>
|
||||
<ObjectListViewProvider objectType='invoice' tableRef={tableRef}>
|
||||
<Flex vertical={'true'} gap='large' className='h-100'>
|
||||
<Flex justify='space-between' style={{ minHeight: 0 }} gap='small'>
|
||||
<Space size='small'>
|
||||
@ -58,9 +54,7 @@ const Invoices = () => {
|
||||
active={showFilterSidebar}
|
||||
onClick={() => setShowFilterSidebar(!showFilterSidebar)}
|
||||
/>
|
||||
<ObjectTableViewButton
|
||||
objectType='invoice'
|
||||
/>
|
||||
<ObjectTableViewButton objectType='invoice' />
|
||||
<ListViewEditButtons showStartingDivider={true} />
|
||||
</Space>
|
||||
</Flex>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user