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
|
Loading market data
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<>
|
|
||||||
{keypair && (party?.positionsConnection?.edges?.length ?? 0) > 0 ? (
|
|
||||||
<table className="relative text-sm w-full whitespace-nowrap">
|
<table className="relative text-sm w-full whitespace-nowrap">
|
||||||
|
{keypair && (party?.positionsConnection?.edges?.length ?? 0) > 0 ? (
|
||||||
|
<>
|
||||||
<TableTitle>{t('My markets')}</TableTitle>
|
<TableTitle>{t('My markets')}</TableTitle>
|
||||||
<SelectAllMarketsTableBody
|
<SelectAllMarketsTableBody
|
||||||
markets={markets}
|
markets={markets}
|
||||||
@ -227,9 +227,8 @@ 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}
|
||||||
@ -239,7 +238,6 @@ export const SelectMarketPopover = ({
|
|||||||
onCellClick={onCellClick}
|
onCellClick={onCellClick}
|
||||||
/>
|
/>
|
||||||
</table>
|
</table>
|
||||||
</>
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Popover>
|
</Popover>
|
||||||
|
Loading…
Reference in New Issue
Block a user