mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Added Table wrapper
refs https://github.com/TryGhost/Product/issues/3881
This commit is contained in:
parent
dff8c38547
commit
b1cd7dd898
1 changed files with 9 additions and 6 deletions
|
@ -69,12 +69,15 @@ const Table: React.FC<TableProps> = ({children, borderTop, hint, hintSeparator,
|
|||
<>
|
||||
<div className='w-full overflow-x-auto'>
|
||||
{pageTitle && <Heading>{pageTitle}</Heading>}
|
||||
{!isLoading && <table ref={table} className={tableClasses}>
|
||||
<tbody>
|
||||
{children}
|
||||
</tbody>
|
||||
</table>}
|
||||
{isLoading && <CenteredLoadingIndicator delay={200} style={loadingStyle} />}
|
||||
{/* TODO: make this div have the same height across all pages */}
|
||||
<div>
|
||||
{!isLoading && <table ref={table} className={tableClasses}>
|
||||
<tbody>
|
||||
{children}
|
||||
</tbody>
|
||||
</table>}
|
||||
{isLoading && <CenteredLoadingIndicator delay={200} style={loadingStyle} />}
|
||||
</div>
|
||||
{(hint || pagination) &&
|
||||
<div className="-mt-px">
|
||||
{(hintSeparator || pagination) && <Separator />}
|
||||
|
|
Loading…
Reference in a new issue