-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide start over button for steps 1-5
- Loading branch information
1 parent
4d75bbe
commit 363c739
Showing
13 changed files
with
140 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,6 @@ node_modules | |
|
||
# cli | ||
dist | ||
|
||
# env | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-include .env | ||
|
||
fork: fork-sepolia fork-mainnet fork-gnosis | ||
|
||
fork-%: | ||
@echo "Forking the $* network..." | ||
anvil --fork-url $($(shell echo $* | tr a-z A-Z)_RPC_URL) --chain-id 31337 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { XMarkIcon } from "@heroicons/react/24/outline"; | ||
|
||
interface PoolResetModalModalProps { | ||
setIsModalOpen: (isOpen: boolean) => void; | ||
clearState: () => void; | ||
} | ||
|
||
export const PoolResetModal = ({ setIsModalOpen, clearState }: PoolResetModalModalProps) => { | ||
return ( | ||
<div className="fixed inset-0 bg-black bg-opacity-75 flex justify-center items-center z-50"> | ||
<div className="absolute w-full h-full" onClick={() => setIsModalOpen(false)} /> | ||
<div className="w-[500px] relative bg-base-300 border border-base-200 rounded-lg p-6"> | ||
<div className="flex items-center justify-between mb-5"> | ||
<h5 className="font-bold text-xl mb-0">Are you sure?</h5> | ||
|
||
<XMarkIcon className="w-6 h-6 hover:cursor-pointer " onClick={() => setIsModalOpen(false)} /> | ||
</div> | ||
|
||
<div className="text-lg my-10">Resetting the pool creation progress cannot be undone.</div> | ||
<div className="flex gap-3 justify-end"> | ||
<button | ||
className="w-24 border border-base-content px-5 py-3 rounded-xl" | ||
onClick={() => setIsModalOpen(false)} | ||
> | ||
Cancel | ||
</button> | ||
<button | ||
onClick={clearState} | ||
className="text-error bg-error-tint px-5 py-3 border border-error rounded-xl w-24" | ||
> | ||
Reset | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from "./StepsDisplay"; | ||
export * from "./PoolCreation"; | ||
export * from "./PoolResetModal"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.