fix: #1678 consistent no data state (#1950)

This commit is contained in:
m.ray 2022-11-03 12:57:16 +00:00 committed by GitHub
parent 769828a39d
commit e36d571cbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,6 @@ const Portfolio = () => {
updateTitle(titlefy([t('Portfolio')])); updateTitle(titlefy([t('Portfolio')]));
}, [updateTitle]); }, [updateTitle]);
const wrapperClasses = 'h-full max-h-full flex flex-col'; const wrapperClasses = 'h-full max-h-full flex flex-col';
const tabContentClassName = 'h-full grid grid-rows-[min-content_1fr]';
return ( return (
<div className={wrapperClasses}> <div className={wrapperClasses}>
<ResizableGrid vertical={true}> <ResizableGrid vertical={true}>
@ -35,22 +34,12 @@ const Portfolio = () => {
</Tab> </Tab>
<Tab id="orders" name={t('Orders')}> <Tab id="orders" name={t('Orders')}>
<VegaWalletContainer> <VegaWalletContainer>
<div className={tabContentClassName}>
<h4 className="text-xl p-4">{t('Orders')}</h4>
<div>
<OrderListContainer /> <OrderListContainer />
</div>
</div>
</VegaWalletContainer> </VegaWalletContainer>
</Tab> </Tab>
<Tab id="fills" name={t('Fills')}> <Tab id="fills" name={t('Fills')}>
<VegaWalletContainer> <VegaWalletContainer>
<div className={tabContentClassName}>
<h4 className="text-xl p-4">{t('Fills')}</h4>
<div>
<FillsContainer /> <FillsContainer />
</div>
</div>
</VegaWalletContainer> </VegaWalletContainer>
</Tab> </Tab>
</Tabs> </Tabs>