fix: adjust table height for a few rows on /bookings (#18728)
This commit is contained in:
1 parent
9caaa0af32
commit
4b264a867b
3 files changed
+27
-13
No files matched your search
@@ -244,17 +244,20 @@ function BookingsContent({ status }: BookingsProps) {
|
||||
</div>
|
||||
)}
|
||||
|
||||
<DataTableWrapper
|
||||
table={table}
|
||||
testId={`${status}-bookings`}
|
||||
bodyTestId="bookings"
|
||||
hideHeader={true}
|
||||
isPending={query.isFetching && !flatData}
|
||||
hasNextPage={query.hasNextPage}
|
||||
fetchNextPage={query.fetchNextPage}
|
||||
isFetching={query.isFetching}
|
||||
variant="compact"
|
||||
/>
|
||||
{flatData.length > 0 && (
|
||||
<DataTableWrapper
|
||||
table={table}
|
||||
testId={`${status}-bookings`}
|
||||
bodyTestId="bookings"
|
||||
hideHeader={true}
|
||||
isPending={query.isFetching && !flatData}
|
||||
hasNextPage={query.hasNextPage}
|
||||
fetchNextPage={query.fetchNextPage}
|
||||
isFetching={query.isFetching}
|
||||
variant="compact"
|
||||
containerClassName="!h-[inherit] max-h-[80dvh]"
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{query.status === "success" && isEmpty && (
|
||||
|
||||
Reference in new issue
Block a user