Skip to content

Commit

Permalink
Reverted staking steps
Browse files Browse the repository at this point in the history
  • Loading branch information
ioay committed Jan 23, 2024
1 parent 12ab0a1 commit fcdf8d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
14 changes: 5 additions & 9 deletions dapp/src/components/Modals/Staking/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,21 @@ import Overview from "./Overview"
import ActionForm from "../ActionForm"
import SignMessage from "./SignMessage"
import DepositBTC from "./DepositBTC"
import { STAKING_STEPS } from "./utils/stakingSteps"

function ActiveStakingStep() {
const { activeStep, startTransactionProcess, endTransactionProcess } =
useModalFlowContext()
const { ACTION_FORM, OVERVIEW, SIGN_MESSAGE, DEPOSIT_BTC } = STAKING_STEPS
const { activeStep, startTransactionProcess } = useModalFlowContext()

switch (activeStep) {
case ACTION_FORM:
case 1:
return <ActionForm action="stake" />
case OVERVIEW:
case 2:
return <Overview />
case SIGN_MESSAGE:
case 3:
startTransactionProcess()
return <SignMessage />
case DEPOSIT_BTC:
case 4:
return <DepositBTC />
default:
endTransactionProcess()
return null
}
}
Expand Down
6 changes: 0 additions & 6 deletions dapp/src/components/Modals/Staking/utils/stakingSteps.ts

This file was deleted.

0 comments on commit fcdf8d2

Please sign in to comment.