Skip to content

Commit

Permalink
fix: console your account (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 authored Aug 23, 2024
1 parent 7692f97 commit f26958b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 29 deletions.
50 changes: 24 additions & 26 deletions apps/deploy-web/src/components/deployments/LeaseRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const LeaseRow = React.forwardRef<AcceptRefType, Props>(({ lease, setActi
</CardHeader>
<CardContent className="pt-4">
<div className="space-y-2">
<div className="">
<div className="mb-4">
<SpecDetail
cpuAmount={lease.cpuAmount}
gpuAmount={lease.gpuAmount}
Expand All @@ -213,33 +213,31 @@ export const LeaseRow = React.forwardRef<AcceptRefType, Props>(({ lease, setActi
}
/>

{isLeaseActive && (
<LabelValueOld
label="Provider:"
value={
<>
{isLoadingProviderStatus && <Spinner size="small" />}
{providerStatus && (
<LabelValueOld
label="Provider:"
value={
<>
{isLeaseActive && isLoadingProviderStatus && <Spinner size="small" />}
{provider && (
<div className="flex items-center space-x-2">
<Link href={UrlService.providerDetail(lease.provider)}>
{provider.name?.length > 25 ? getSplitText(provider.name, 10, 10) : provider.name}
</Link>

<div className="flex items-center space-x-2">
<Link href={UrlService.providerDetail(lease.provider)}>
{providerStatus.name?.length > 25 ? getSplitText(providerStatus.name, 10, 10) : providerStatus.name}
</Link>

<div className="flex items-center space-x-2">
<FavoriteButton isFavorite={isFavorite} onClick={onStarClick} />

{provider?.isAudited && (
<div className="ml-2">
<AuditorButton provider={provider} />
</div>
)}
</div>
<FavoriteButton isFavorite={isFavorite} onClick={onStarClick} />

{provider?.isAudited && (
<div className="ml-2">
<AuditorButton provider={provider} />
</div>
)}
</div>
)}
</>
}
/>
)}
</div>
)}
</>
}
/>
</div>

{isLeaseNotFound && (
Expand Down
2 changes: 1 addition & 1 deletion apps/deploy-web/src/components/home/YourAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const YourAccount: React.FunctionComponent<Props> = ({ balances, isLoadin
label: "Balance",
denom: usdcIbcDenom,
denomLabel: "USDC",
value: isManagedWallet && envConfig.NEXT_PUBLIC_MANAGED_WALLET_DENOM === "usdc" ? balances.balanceUsdc + managedWalletCreditAmount : balances.balance,
value: isManagedWallet && envConfig.NEXT_PUBLIC_MANAGED_WALLET_DENOM === "usdc" ? balances.balanceUsdc + managedWalletCreditAmount : balances.balanceUsdc,
color: colors.balance_usdc
},
{
Expand Down
4 changes: 2 additions & 2 deletions apps/deploy-web/src/components/layout/WalletStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ export function WalletStatus() {
</>
)
) : (
<div className="pl-2 pr-2">
<Spinner size="small" />
<div className="flex items-center justify-center p-4">
<Spinner size="medium" />
</div>
)}
</>
Expand Down

0 comments on commit f26958b

Please sign in to comment.