Skip to content

Instantly share code, notes, and snippets.

View adetyaz's full-sized avatar
🎯
Focusing

Adetayo adetyaz

🎯
Focusing
View GitHub Profile
/* 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;
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()
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' />
import "../styles/globals.css";
import { MeshProvider } from "@meshsdk/react";
function MyApp({ Component, pageProps }: AppProps) {
return (
<MeshProvider>
<Component {...pageProps} />
</MeshProvider>
);
}
@adetyaz
adetyaz / meshwebpackconfig.js
Last active May 12, 2023 20:25
Set up webpack config for meshsdk
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
webpack: function (config, options) {
config.experiments = {
asyncWebAssembly: true,
layers: true,
};
return config;
},