Skip to content

Commit

Permalink
display an alert to withdraw using combo
Browse files Browse the repository at this point in the history
  • Loading branch information
alphastorm committed Oct 20, 2023
1 parent b71c27f commit 62c0020
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/WithdrawPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
Alert,
Box,
Button,
Checkbox,
Expand Down Expand Up @@ -133,6 +134,10 @@ const WithdrawPage = (props: Props): ReactElement | null => {
"withdrawPercentage",
)} (%):`}</Typography>
</Box>
<Alert severity="error">
You must withdraw using the &quot;Combo&quot; option for
paused pools.
</Alert>
<TextField
placeholder="0.0"
size="small"
Expand Down Expand Up @@ -165,7 +170,6 @@ const WithdrawPage = (props: Props): ReactElement | null => {
control={<Radio />}
label="Combo"
data-testid="withdrawPercentageCombo"
checked={true}
/>
{tokensData.map((t) => {
return (
Expand All @@ -176,7 +180,6 @@ const WithdrawPage = (props: Props): ReactElement | null => {
// disabled={poolData?.isPaused}
label={t.symbol}
data-testid="withdrawTokenRadio"
disabled={true}
/>
)
})}
Expand Down

0 comments on commit 62c0020

Please sign in to comment.