-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23b7c63
commit b26a39f
Showing
13 changed files
with
203 additions
and
117 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
8 changes: 6 additions & 2 deletions
8
web-modal-sdk/react-modal-playground/src/components/Console.tsx
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
23 changes: 23 additions & 0 deletions
23
web-modal-sdk/react-modal-playground/src/components/DisconnectWeb3AuthButton.tsx
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,23 @@ | ||
import React from "react"; | ||
|
||
import web3AuthLogoWhite from "../assets/web3authLogoWhite.svg"; | ||
import { useWeb3Auth } from "../services/web3auth"; | ||
|
||
const ConnectWeb3AuthButton = () => { | ||
const { provider, logout } = useWeb3Auth(); | ||
|
||
if (provider) { | ||
return ( | ||
<div | ||
className="flex flex-row rounded-full px-6 py-3 text-white justify-center align-center cursor-pointer" | ||
style={{ backgroundColor: "#0364ff" }} | ||
onClick={logout} | ||
> | ||
<img src={web3AuthLogoWhite} className="headerLogo" /> | ||
Disconnect | ||
</div> | ||
); | ||
} | ||
return null; | ||
}; | ||
export default ConnectWeb3AuthButton; |
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.