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
/* Set the position of the dropdown container to relative */ | |
.dropdown { | |
position: relative; | |
} | |
/* Style the button that will show the dropdown on hover */ | |
.dropdown-btn { | |
background-color: #f1f1f1; | |
color: #333; | |
padding: 10px 20px; |
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
import { useState, useEffect } from 'react' | |
import { useWallet, useWalletList } from '@meshsdk/react' | |
import Image from 'next/image' | |
const ConnectWallet = () => { | |
const [selectedWallet, setSelectedWallet] = useState(null) | |
const { connect, disconnect, connecting } = useWallet() | |
const wallets = useWalletList() |
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
import { CardanoWallet } from '@meshsdk/react' | |
export default function Home() { | |
return ( | |
<> | |
<Head> | |
<title>Persistent Cardano Button</title> | |
<meta name='description' content='Generated by create next app' /> | |
<meta name='viewport' content='width=device-width, initial-scale=1' /> | |
<link rel='icon' href='/favicon.ico' /> |
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
import "../styles/globals.css"; | |
import { MeshProvider } from "@meshsdk/react"; | |
function MyApp({ Component, pageProps }: AppProps) { | |
return ( | |
<MeshProvider> | |
<Component {...pageProps} /> | |
</MeshProvider> | |
); | |
} |
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
/** @type {import('next').NextConfig} */ | |
const nextConfig = { | |
reactStrictMode: true, | |
webpack: function (config, options) { | |
config.experiments = { | |
asyncWebAssembly: true, | |
layers: true, | |
}; | |
return config; | |
}, |