Refactor ObjectTable component for improved readability and styling consistency
- Simplified the loadPage function call by consolidating parameters into a single line, enhancing code clarity. - Updated the Splitter component's className to include 'large', ensuring consistent styling across the dashboard components.
This commit is contained in:
parent
342f770841
commit
1efebeeda6
@ -823,11 +823,7 @@ const ObjectTable = forwardRef(
|
||||
setTableSorter(sorter)
|
||||
}
|
||||
|
||||
loadPage(
|
||||
initialPage,
|
||||
activeFilter,
|
||||
sorter.field ? sorter : null
|
||||
)
|
||||
loadPage(initialPage, activeFilter, sorter.field ? sorter : null)
|
||||
}, [getPersistedFilter, getPersistedSorter, initialPage, loadPage])
|
||||
|
||||
useImperativeHandle(ref, () => ({
|
||||
@ -1281,7 +1277,7 @@ const ObjectTable = forwardRef(
|
||||
style={{ flex: 1, minWidth: 0, minHeight: 0 }}
|
||||
>
|
||||
<Splitter
|
||||
className={'farmcontrol-splitter'}
|
||||
className={'farmcontrol-splitter large'}
|
||||
onResize={measureCardColSpan}
|
||||
onResizeEnd={measureCardColSpan}
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user