-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1481 blockchain network selection (#1518)
* feat(app): moved sync to chain logic to sidebar * feat(app): move sync to chain logic to its own component * feat(app): disable on chain button if chain is not active * feat(app): save on chain providers by chainid and indicate in on chain form * feat(app): update checkOnChainStatus to look for differences between both onchain and db * fix(app): update tests to match chain and provider state * fix(app): update provider list to look at gitcoin stamp * fix(app): remove old providers from test helper
- Loading branch information
schultztimothy
authored
Jul 27, 2023
1 parent
bbca98e
commit 3ca1a1f
Showing
10 changed files
with
141 additions
and
185 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
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,26 @@ | ||
/* eslint-disable react-hooks/exhaustive-deps */ | ||
// --- React Methods | ||
import React, { useState } from "react"; | ||
|
||
// --Chakra UI Elements | ||
import { LinkIcon } from "@heroicons/react/20/solid"; | ||
|
||
// --- Style Components | ||
import { OnchainSidebar } from "./OnchainSidebar"; | ||
|
||
const InitiateOnChainButton = () => { | ||
const [showSidebar, setShowSidebar] = useState<boolean>(false); | ||
|
||
return ( | ||
<> | ||
<button className="h-10 w-10 rounded-md border border-muted" onClick={() => setShowSidebar(true)}> | ||
<div className="flex justify-center"> | ||
<LinkIcon width="24" /> | ||
</div> | ||
</button> | ||
<OnchainSidebar isOpen={showSidebar} onClose={() => setShowSidebar(false)} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default InitiateOnChainButton; |
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.