This file contains hidden or 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
// h/t: https://github.com/facebook/create-react-app/issues/12219#issuecomment-1085567299 | |
import { createRoot } from 'react-dom/client'; | |
import { BrowserRouter } from 'react-router-dom'; | |
import { StrictMode } from 'react'; | |
import App from './App'; | |
import reportWebVitals from './reportWebVitals'; | |
import './index.css'; | |
const container = document.getElementById('root'); |
This file contains hidden or 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 { FC, ReactNode } from 'react'; | |
import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react' | |
import { WalletModalProvider } from "@solana/wallet-adapter-react-ui"; | |
import * as web3 from '@solana/web3.js' | |
import * as walletAdapterWallets from '@solana/wallet-adapter-wallets'; | |
require('@solana/wallet-adapter-react-ui/styles.css'); | |
const WalletContextProvider: FC<{ children: ReactNode }> = ({ children }) => { | |
const endpoint = web3.clusterApiUrl('devnet') | |
const wallets = [new walletAdapterWallets.PhantomWalletAdapter()] |
OlderNewer