Fix wallet modal, add Lute wallet, dark mode, add comments
This commit is contained in:
@ -1,13 +1,15 @@
|
||||
import { SupportedWallet, WalletId, WalletManager, WalletProvider } from '@txnlab/use-wallet-react'
|
||||
import { SnackbarProvider } from 'notistack'
|
||||
import { BrowserRouter, Routes, Route } from 'react-router-dom'
|
||||
import { BrowserRouter, Route, Routes } from 'react-router-dom'
|
||||
import Home from './Home'
|
||||
import Layout from './Layout'
|
||||
import TokenizePage from './TokenizePage'
|
||||
import { getAlgodConfigFromViteEnvironment, getKmdConfigFromViteEnvironment } from './utils/network/getAlgoClientConfigs'
|
||||
|
||||
// Configure supported wallets based on network environment
|
||||
let supportedWallets: SupportedWallet[]
|
||||
if (import.meta.env.VITE_ALGOD_NETWORK === 'localnet') {
|
||||
// LocalNet: KMD wallet for local development
|
||||
const kmdConfig = getKmdConfigFromViteEnvironment()
|
||||
supportedWallets = [
|
||||
{
|
||||
@ -18,11 +20,17 @@ if (import.meta.env.VITE_ALGOD_NETWORK === 'localnet') {
|
||||
port: String(kmdConfig.port),
|
||||
},
|
||||
},
|
||||
{ id: WalletId.LUTE },
|
||||
]
|
||||
} else {
|
||||
supportedWallets = [{ id: WalletId.DEFLY }, { id: WalletId.PERA }, { id: WalletId.EXODUS }]
|
||||
// TestNet/MainNet: Browser extension wallets (Pera, Defly, Exodus, Lute)
|
||||
supportedWallets = [{ id: WalletId.DEFLY }, { id: WalletId.PERA }, { id: WalletId.EXODUS }, { id: WalletId.LUTE }]
|
||||
}
|
||||
|
||||
/**
|
||||
* Main App Component
|
||||
* Sets up wallet provider and routing for the Tokenization dApp
|
||||
*/
|
||||
export default function App() {
|
||||
const algodConfig = getAlgodConfigFromViteEnvironment()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user