fix: additional notes.

This commit is contained in:
elforjani13
2022-07-06 13:44:00 +02:00
parent 7ef7e126e5
commit 38a961b899
17 changed files with 276 additions and 145 deletions

View File

@@ -91,20 +91,24 @@ export default function TableHeader() {
if (headerLoading && TableHeaderSkeletonRenderer) {
return <TableHeaderSkeletonRenderer />;
}
// Can't contiunue if the thead is disabled.
if (hideTableHeader) {
return null;
}
return (
!hideTableHeader && (
<ScrollSyncPane>
<div className="thead">
<div className={'thead-inner'}>
{headerGroups.map((headerGroup, index) => (
<TableHeaderGroup key={index} headerGroup={headerGroup} />
))}
<If condition={progressBarLoading}>
<MaterialProgressBar />
</If>
</div>
<ScrollSyncPane>
<div className="thead">
<div className={'thead-inner'}>
{headerGroups.map((headerGroup, index) => (
<TableHeaderGroup key={index} headerGroup={headerGroup} />
))}
<If condition={progressBarLoading}>
<MaterialProgressBar />
</If>
</div>
</ScrollSyncPane>
)
</div>
</ScrollSyncPane>
);
}