fix: align market dropdown cells for both my markets and all markets (#1492)
This commit is contained in:
parent
6ad68f87cc
commit
26e3596c5a
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user