Skip to content

Commit

Permalink
Fix voting text
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Oct 21, 2024
1 parent cf85964 commit 347cc76
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
7 changes: 4 additions & 3 deletions src/components/PositionManager/ExtendPositionPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@ export const ExtendPositionPrompt: FC<{
<div className="flex flex-col gap-2">
{numVotedProposals > 0 && (
<span className="text-red-500">
You have voted on {numVotedProposals} proposal{numVotedProposals > 1 ? "s" : ""}. Extending your
position resets your voting progress. If you extend this position, you will need to vote on 2
more proposals before this position is eligible for rewards again.
{numVotedProposals >= 2 &&
"Position is currently eligible for voting rewards. If you extend this position, you will need to vote on 2 more proposals to gain eligibility again."}
{numVotedProposals === 1 &&
"You have voted on 1 proposal. Extending your position resets your voting progress. If you extend this position, you will need to vote on 2 more proposals before this position is eligible for rewards."}
</span>
)}
<LockTokensForm
Expand Down
9 changes: 4 additions & 5 deletions src/components/PositionManager/MergePositionPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,10 @@ export const MergePositionPrompt: FC<{
</div>
{numVotedProposals > 0 && (
<span className="text-red-500">
You have voted on {numVotedProposals} proposal
{numVotedProposals > 1 ? "s" : ""}. Merging your positions
resets your voting progress. If you merge these positions, you
will need to vote on 2 more proposals before they are
eligible for rewards again.
{numVotedProposals >= 2 &&
"Position is currently eligible for voting rewards. If you extend this position, you will need to vote on 2 more proposals to gain eligibility again."}
{numVotedProposals === 1 &&
"You have voted on 1 proposal. Extending your position resets your voting progress. If you extend this position, you will need to vote on 2 more proposals before this position is eligible for rewards."}
</span>
)}
<div className="flex flex-row flex-1 gap-2 w-full">
Expand Down
9 changes: 4 additions & 5 deletions src/components/PositionManager/SplitPositionPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,10 @@ export const SplitPositionPrompt: FC<{
<div className="flex flex-col gap-2">
{numVotedProposals > 0 && (
<span className="text-red-500">
You have voted on {numVotedProposals} proposal
{numVotedProposals > 1 ? "s" : ""}. Splitting your position resets
your voting progress. If you split this position, you will need
to vote on 2 more proposals before they are eligible for rewards
again.
{numVotedProposals >= 2 &&
"Position is currently eligible for voting rewards. If you extend this position, you will need to vote on 2 more proposals to gain eligibility again."}
{numVotedProposals === 1 &&
"You have voted on 1 proposal. Extending your position resets your voting progress. If you extend this position, you will need to vote on 2 more proposals before this position is eligible for rewards."}
</span>
)}
<LockTokensForm
Expand Down

0 comments on commit 347cc76

Please sign in to comment.