Skip to content

Commit

Permalink
Account screen: remove new actions (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre authored Nov 1, 2024
1 parent 0b27965 commit 3ecf586
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions frontend/app/src/comps/Positions/Positions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,15 @@ function PositionsGroup({
[1, <StrongCard key="1" loading />],
[2, <StrongCard key="2" loading />],
])
.with("actions", () => [
[0, <ActionCard key="0" type="borrow" />],
[1, <ActionCard key="1" type="leverage" />],
[2, <ActionCard key="2" type="earn" />],
[3, <ActionCard key="3" type="stake" />],
])
.with("actions", () =>
showNewPositionCard
? [
[0, <ActionCard key="0" type="borrow" />],
[1, <ActionCard key="1" type="leverage" />],
[2, <ActionCard key="2" type="earn" />],
[3, <ActionCard key="3" type="stake" />],
]
: [])
.exhaustive();

if (mode === "actions") {
Expand Down

0 comments on commit 3ecf586

Please sign in to comment.