diff --git a/src/renderer/components/blocks/tables/CompactUnitsTable.tsx b/src/renderer/components/blocks/tables/CompactUnitsTable.tsx index 9d94ed22..c0350ae5 100644 --- a/src/renderer/components/blocks/tables/CompactUnitsTable.tsx +++ b/src/renderer/components/blocks/tables/CompactUnitsTable.tsx @@ -50,7 +50,6 @@ const CompactUnitsTable: React.FC = ({ onRowClick={onRowClick} primaryKey="warehouseUnitId" isLoading={false} - compact={true} footer={
{shouldRenderPagination ? ( diff --git a/src/renderer/components/blocks/tables/ProjectsListTable.tsx b/src/renderer/components/blocks/tables/ProjectsListTable.tsx index 5370d00b..bc4fb1da 100644 --- a/src/renderer/components/blocks/tables/ProjectsListTable.tsx +++ b/src/renderer/components/blocks/tables/ProjectsListTable.tsx @@ -129,29 +129,27 @@ const ProjectsListTable: React.FC = ({ return ( <> -
- - - - - } - /> -
+ + + + + } + /> {(createProjectModalActive || editProjectModalActive) && } ); diff --git a/src/renderer/components/layout/DataTable.tsx b/src/renderer/components/layout/DataTable.tsx index 1ba93fac..8682540d 100644 --- a/src/renderer/components/layout/DataTable.tsx +++ b/src/renderer/components/layout/DataTable.tsx @@ -27,7 +27,6 @@ interface DataTableProps { onChangeOrder?: (column: string) => void; order?: string; footer?: JSX.Element | null; - compact?: boolean; } const DataTable: React.FC = ({ @@ -39,14 +38,13 @@ const DataTable: React.FC = ({ onChangeOrder, order, footer = null, - compact = false, }) => { if (isLoading) { return null; } return ( -
+
{/* Mobile view */}
{data?.length > 0 && @@ -81,11 +79,12 @@ const DataTable: React.FC = ({
{/* Desktop view */} - -
0 ? 'calc(100vh - 240px)' : 'unset', width: 'calc(100vw - 260px)' }} - > + {footer && data.length ? ( + + ) : null} +
0 ? 'calc(100vh - 240px)' : 'auto' }}> = ({
- {footer && data.length ? ( -
{footer}
- ) : null}
{data?.length === 0 && (