Skip to content

Commit

Permalink
yeahh
Browse files Browse the repository at this point in the history
  • Loading branch information
ingawei committed Jul 31, 2024
1 parent b73b93d commit 0fa7f29
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
2 changes: 0 additions & 2 deletions web/components/portfolio/portfolio-summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@ export const PortfolioSummary = (props: { user: User; className?: string }) => {
<TwombaPortfolioValueSection
user={user}
defaultTimePeriod={currentUser?.id === user.id ? 'weekly' : 'monthly'}
hideAddFundsButton
/>
) : (
<PortfolioValueSection
user={user}
defaultTimePeriod={currentUser?.id === user.id ? 'weekly' : 'monthly'}
hideAddFundsButton
/>
)}

Expand Down
25 changes: 11 additions & 14 deletions web/components/portfolio/twomba-portfolio-value-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ function TwombaPortfolioValueSkeleton(props: {
</SizedContainer>
)}
</Col>
<Spacer h={4} />
<Spacer h={6} />
<Col>
<span>
<CoinNumber
Expand Down Expand Up @@ -467,20 +467,17 @@ function TwombaPortfolioValueSkeleton(props: {
toggleClassName="grow justify-center"
/>
)}
{!hideAddFundsButton && (
<Row className="mt-4 w-full gap-1">
<AddFundsButton
userId={userId}
className="w-1/2 whitespace-nowrap"
/>
<RedeemSpiceButton
userId={userId}
className="w-1/2 whitespace-nowrap"
spice={portfolioValues?.spice}
/>
</Row>
)}
</Col>
{!hideAddFundsButton && (
<Row className="mt-4 w-full gap-1 sm:gap-2">
<AddFundsButton userId={userId} className="w-1/2 whitespace-nowrap" />
<RedeemSpiceButton
userId={userId}
className="w-1/2 whitespace-nowrap"
spice={portfolioValues?.spice}
/>
</Row>
)}
</Col>
)
}
Expand Down

0 comments on commit 0fa7f29

Please sign in to comment.