Skip to content

Commit d9c2747

Browse files
author
dschlabach
committed
fix exports
1 parent 4fda89e commit d9c2747

File tree

3 files changed

+5
-99
lines changed

3 files changed

+5
-99
lines changed

playground/nextjs-app-router/components/DemoOptions.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { IsSponsored } from './form/is-sponsored';
99
import { NFTOptions } from './form/nft-options';
1010
import { SwapConfig } from './form/swap-config';
1111
import { TransactionOptions } from './form/transaction-options';
12-
import { WalletType } from './form/WalletType';
12+
import { WalletType } from './form/wallet-type';
1313

1414
const COMMON_OPTIONS = [
1515
ActiveComponent,

playground/nextjs-app-router/components/form/WalletType.tsx

-95
This file was deleted.

playground/nextjs-app-router/components/form/wallet-type.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ export enum WalletPreference {
1010
EOA = 'eoaOnly',
1111
}
1212

13-
function getConnector(
13+
const getConnector = (
1414
walletType: WalletPreference,
1515
connectors: GetConnectorsReturnType,
16-
) {
16+
) => {
1717
if (walletType === WalletPreference.SMART_WALLET) {
1818
return connectors[0];
1919
}
2020
return connectors[1];
21-
}
21+
};
2222

2323
export function WalletType() {
2424
const { disconnectAsync } = useDisconnect();
@@ -36,6 +36,7 @@ export function WalletType() {
3636
}, []);
3737

3838
async function handleConnect(value: WalletPreference) {
39+
console.log('value:', value);
3940
setWalletType(value);
4041
connect(
4142
{

0 commit comments

Comments
 (0)