fix account loading

This commit is contained in:
saml33 2022-06-20 15:51:31 +10:00
parent 2261c93e23
commit 3bff95a069
3 changed files with 7 additions and 7 deletions

View File

@ -208,7 +208,7 @@ const BalancesTable = ({
{submitting ? <Loading /> : t('settle-all')}
</Button>
</div>
<div className="grid grid-flow-row grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3">
<div className="grid grid-flow-row grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
{unsettledBalances.map((bal) => {
const tokenConfig = getTokenBySymbol(mangoGroupConfig, bal.symbol)
return (
@ -220,8 +220,8 @@ const BalancesTable = ({
<div className="flex items-center">
<img
alt=""
width="24"
height="24"
width="20"
height="20"
src={`/assets/icons/${bal.symbol.toLowerCase()}.svg`}
className={`mr-3`}
/>

View File

@ -116,7 +116,7 @@ const PositionsTable: React.FC = () => {
{unsettledPositions.length > 1 ? <RedeemButtons /> : null}
</div>
<div className="grid grid-flow-row grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3">
<div className="grid grid-flow-row grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
{unsettledPositions.map((p, index) => {
return (
<div
@ -127,8 +127,8 @@ const PositionsTable: React.FC = () => {
<div className="flex items-center">
<img
alt=""
width="24"
height="24"
width="20"
height="20"
src={`/assets/icons/${p.marketConfig.baseSymbol.toLowerCase()}.svg`}
className={`mr-3`}
/>

View File

@ -490,7 +490,7 @@ export default function Account() {
</Swipeable>
</div>
)
) : isLoading ? (
) : isLoading && (connected || pubkey) ? (
<div className="flex justify-center py-10">
<Loading />
</div>