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