beethovenxfi / beets-frontend

beets-frontend.vercel.app
MIT License
15 stars 20 forks source link

Check gauge rewards on withdraw #327

Closed groninge01 closed 1 year ago

groninge01 commented 1 year ago

Only for pools with a gauge. Show a warning when a user is trying to withdraw all from a pool while there are still rewards to be claimed.

image

image

Also update the toast text to say "Withdraw" instead of "Withdraw and claim rewards".

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
beets-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2023 1:22pm
op-beets-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2023 1:22pm
arb000r commented 1 year ago

NitPick: Instead of

{ 
    myCondition &&
    <PoolWithdrawCheck />
}

You can also try below for some cleaner JSX and use the conditional inside the component. Your discretion if you wanna implement or not.

    <PoolWithdrawCheck performCheck={myCondition} />