fix: align market dropdown cells for both my markets and all markets (#1492)

This commit is contained in:
Matthew Russell 2022-09-28 12:15:09 -07:00 committed by GitHub
parent 6ad68f87cc
commit 26e3596c5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,9 +202,9 @@ export const SelectMarketPopover = ({
Loading market data
</div>
) : (
<>
<table className="relative text-sm w-full whitespace-nowrap">
{keypair && (party?.positionsConnection?.edges?.length ?? 0) > 0 ? (
<table className="relative text-sm w-full whitespace-nowrap">
<>
<TableTitle>{t('My markets')}</TableTitle>
<SelectAllMarketsTableBody
markets={markets}
@ -227,19 +227,17 @@ export const SelectMarketPopover = ({
)
}
/>
</table>
</>
) : null}
<table className="relative text-sm w-full whitespace-nowrap">
<TableTitle>{t('All markets')}</TableTitle>
<SelectAllMarketsTableBody
markets={data?.markets}
marketsData={data?.marketsData}
marketsCandles={data?.marketsCandles}
onSelect={onSelectMarket}
onCellClick={onCellClick}
/>
</table>
</>
<TableTitle>{t('All markets')}</TableTitle>
<SelectAllMarketsTableBody
markets={data?.markets}
marketsData={data?.marketsData}
marketsCandles={data?.marketsCandles}
onSelect={onSelectMarket}
onCellClick={onCellClick}
/>
</table>
)}
</div>
</Popover>