put container into wrapper

This commit is contained in:
Winzlieb - 2022-03-11 11:25:02 +01:00
parent baed5ba267
commit a9f6bfadeb
1 changed files with 11 additions and 1 deletions

View File

@ -2,6 +2,7 @@ import React from 'react'
import {Auth, useGetOffersQuery} from "../../codegen/generates";
import testAuth from '../util/testAuth.json'
import HostOfferLookupTable from "./HostOfferLookupTable";
import {Box} from "@mui/material";
type HostLookupWrapperProps = Record<string, never>
@ -11,7 +12,16 @@ const HostOfferLookupWrapper = ({}: HostLookupWrapperProps) => {
return <>
{ isFetching && <p> loading </p> }
{ data?.get_offers && <HostOfferLookupTable data={data}/> }
{ data?.get_offers && <Box sx={{
display: 'flex',
alignItems: 'stretch',
flexDirection: 'column',
height: '100%'}}>
<div
style={{flex: '1 1', height: '100%'}}>
<HostOfferLookupTable data={data}/>
</div>
</Box> }
</>
}