yearn / yearn-finance-v3

Yearn Finance Web App v3
https://yearn.finance
123 stars 138 forks source link

refactor: Use `SimpleTransaction` component #743

Closed karelianpie closed 2 years ago

karelianpie commented 2 years ago

Description

Follow up on https://github.com/yearn/yearn-finance-v3/pull/741

Replace the usage of the Transaction component in Gauges/StakeTx and Gauges/Unstake with SimpleTransaction component.

Uses the error and success state of the Transaction component.

Motivation and Context

Simplify the component to its essentials.

How Has This Been Tested?

Ran locally, refer to screenshots below

Screenshots (if appropriate):

Stake

Screen Shot 2022-08-08 at 1 52 59 pm

Unstake

Screen Shot 2022-08-08 at 1 53 50 pm

Error

Screen Shot 2022-08-08 at 12 33 48 pm

Success

Screen Shot 2022-08-08 at 1 05 27 pm