-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from MeshJS/plutus-minting
Plutus Minting
- Loading branch information
Showing
75 changed files
with
2,044 additions
and
577 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 |
---|---|---|
@@ -1,32 +1,9 @@ | ||
import Button from '../ui/button'; | ||
import useWallet from '../../contexts/wallet'; | ||
import { CardanoWallet, useWalletList } from '@meshsdk/react'; | ||
|
||
export default function ConnectCipWallet() { | ||
const { connecting, walletNameConnected, connectWallet, availableWallets } = useWallet(); | ||
|
||
const wallets = useWalletList(); | ||
const hasAvailableWallets = wallets.length > 0; | ||
return ( | ||
<> | ||
{availableWallets | ||
? availableWallets.length == 0 | ||
? 'No wallets installed' | ||
: availableWallets.map((wallet, i) => ( | ||
<Button | ||
key={i} | ||
onClick={() => connectWallet(wallet.name)} | ||
style={ | ||
walletNameConnected == wallet.name | ||
? 'success' | ||
: connecting | ||
? 'warning' | ||
: 'light' | ||
} | ||
disabled={connecting || walletNameConnected == wallet.name} | ||
> | ||
<img src={`${wallet.icon}`} className="m-0 mr-2 w-6 h-6" /> | ||
Connect with {wallet.name} | ||
</Button> | ||
)) | ||
: ''} | ||
</> | ||
<>{hasAvailableWallets ? <CardanoWallet /> : <>No wallets installed</>}</> | ||
); | ||
} |
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
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.
92cc310
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
mesh-playground – ./
mesh-playground.vercel.app
www.meshjs.dev
mesh-playground-meshsdk.vercel.app
mesh-playground-git-main-meshsdk.vercel.app
meshjs.dev