Skip to content

Commit

Permalink
Add back button to step 1
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPereira committed Aug 8, 2024
1 parent 5d6344a commit 0e39544
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions packages/nextjs/app/cow/_components/PoolCreation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,17 @@ export const PoolCreation = ({ state, clearState }: ManagePoolCreationProps) =>
switch (state.step) {
case 1:
return (
<TransactionButton
title="Create Pool"
isPending={isCreatePending}
isDisabled={isCreatePending || isWrongNetwork}
onClick={handleCreatePool}
/>
<>
<TransactionButton
title="Create Pool"
isPending={isCreatePending}
isDisabled={isCreatePending || isWrongNetwork}
onClick={handleCreatePool}
/>
<div className="link flex items-center gap-2" onClick={clearState}>
Back to Configure
</div>
</>
);
case 2:
return (
Expand Down

0 comments on commit 0e39544

Please sign in to comment.