File tree Expand file tree Collapse file tree 3 files changed +19
-12
lines changed
packages/react/src/payments Expand file tree Collapse file tree 3 files changed +19
-12
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @thirdweb-dev/react " : patch
3
+ ---
4
+
5
+ Remove const enums to object to fix issues with Next.js <13.5
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ interface VerifyOwnershipWithPaperProps {
27
27
clientId ?: string ;
28
28
}
29
29
30
- const enum VERIFY_OWNERSHIP_WITH_PAPER_EVENT_TYPE {
31
- USER_LOGIN_SUCCESS = "userLoginSuccess" ,
32
- USER_LOGIN_FAILED = "userLoginFailed" ,
33
- USER_CLOSE_LOGIN_PAGE = "userCloseLoginPage" ,
34
- }
30
+ const VERIFY_OWNERSHIP_WITH_PAPER_EVENT_TYPE = {
31
+ USER_LOGIN_SUCCESS : "userLoginSuccess" ,
32
+ USER_LOGIN_FAILED : "userLoginFailed" ,
33
+ USER_CLOSE_LOGIN_PAGE : "userCloseLoginPage" ,
34
+ } as const ;
35
35
36
36
export const VerifyOwnershipWithPaper : React . FC <
37
37
VerifyOwnershipWithPaperProps
Original file line number Diff line number Diff line change 1
1
// UNCHANGED
2
- export const enum WalletType {
3
- Preset = "Preset" ,
4
- MetaMask = "metaMask" ,
5
- CoinbaseWallet = "coinbaseWallet" ,
6
- WalletConnect = "walletConnect" ,
7
- Phantom = "Phantom" ,
8
- }
2
+ const WalletTypeObj = {
3
+ Preset : "Preset" ,
4
+ MetaMask : "metaMask" ,
5
+ CoinbaseWallet : "coinbaseWallet" ,
6
+ WalletConnect : "walletConnect" ,
7
+ Phantom : "Phantom" ,
8
+ } as const ;
9
+
10
+ export type WalletType = ( typeof WalletTypeObj ) [ keyof typeof WalletTypeObj ] ;
9
11
10
12
export interface ConnectWalletProps {
11
13
onWalletConnected : onWalletConnectedType ;
You can’t perform that action at this time.
0 commit comments