Commit d9c2747 dschlabach
committed
1 parent 4fda89e commit d9c2747 Copy full SHA for d9c2747
File tree 3 files changed +5
-99
lines changed
playground/nextjs-app-router/components
3 files changed +5
-99
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { IsSponsored } from './form/is-sponsored';
9
9
import { NFTOptions } from './form/nft-options' ;
10
10
import { SwapConfig } from './form/swap-config' ;
11
11
import { TransactionOptions } from './form/transaction-options' ;
12
- import { WalletType } from './form/WalletType ' ;
12
+ import { WalletType } from './form/wallet-type ' ;
13
13
14
14
const COMMON_OPTIONS = [
15
15
ActiveComponent ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ export enum WalletPreference {
10
10
EOA = 'eoaOnly' ,
11
11
}
12
12
13
- function getConnector (
13
+ const getConnector = (
14
14
walletType : WalletPreference ,
15
15
connectors : GetConnectorsReturnType ,
16
- ) {
16
+ ) => {
17
17
if ( walletType === WalletPreference . SMART_WALLET ) {
18
18
return connectors [ 0 ] ;
19
19
}
20
20
return connectors [ 1 ] ;
21
- }
21
+ } ;
22
22
23
23
export function WalletType ( ) {
24
24
const { disconnectAsync } = useDisconnect ( ) ;
@@ -36,6 +36,7 @@ export function WalletType() {
36
36
} , [ ] ) ;
37
37
38
38
async function handleConnect ( value : WalletPreference ) {
39
+ console . log ( 'value:' , value ) ;
39
40
setWalletType ( value ) ;
40
41
connect (
41
42
{
You can’t perform that action at this time.
0 commit comments