Skip to content

Commit eec3991

Browse files
Fix next related issues
1 parent 1ed94bc commit eec3991

File tree

8 files changed

+12
-21
lines changed

8 files changed

+12
-21
lines changed

examples/next/src/components/Connected.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,6 @@ export const Connected = () => {
626626
const salesContractAddress = '0xf0056139095224f4eec53c578ab4de1e227b9597'
627627
const collectionAddress = '0x92473261f2c26f2264429c451f70b0192f858795'
628628
const price = '200000000000000'
629-
const contractId = '674eb55a3d739107bbd18ecb'
630629

631630
// // ERC-20 contract
632631
// const currencyAddress = '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359'
@@ -689,10 +688,7 @@ export const Connected = () => {
689688
collectionAddress,
690689
creditCardProviders: [checkoutProvider || 'transak'],
691690
onRampProvider: onRampProvider ? (onRampProvider as TransactionOnRampProvider) : TransactionOnRampProvider.transak,
692-
transakConfig: {
693-
contractId
694-
},
695-
onSuccess: (txnHash: string) => {
691+
onSuccess: (txnHash?: string) => {
696692
console.log('success!', txnHash)
697693
},
698694
onError: (error: Error) => {

examples/next/src/components/CustomCheckout/index.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const CustomCheckout = () => {
2424
const salesContractAddress = '0xe65b75eb7c58ffc0bf0e671d64d0e1c6cd0d3e5b'
2525
const collectionAddress = '0xdeb398f41ccd290ee5114df7e498cf04fac916cb'
2626
const price = '20000'
27-
const contractId = '674eb5613d739107bbd18ed2'
2827

2928
const chainId = 137
3029

@@ -57,11 +56,7 @@ export const CustomCheckout = () => {
5756
currencyAddress,
5857
collectionAddress,
5958
creditCardProvider: 'transak' as CreditCardProviders,
60-
transakConfig: {
61-
contractId,
62-
apiKey: '5911d9ec-46b5-48fa-a755-d59a715ff0cf'
63-
},
64-
onSuccess: (txnHash: string) => {
59+
onSuccess: (txnHash?: string) => {
6560
console.log('success!', txnHash)
6661
},
6762
onError: (error: Error) => {

examples/next/src/config.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,4 @@ export const getErc1155SaleContractConfig = (walletAddress: string) => ({
170170
}
171171
})
172172

173-
export const checkoutConfig: SequenceCheckoutConfig = {
174-
env: isDev
175-
? {
176-
sardineCheckoutUrl: 'https://sardine-checkout-sandbox.sequence.info',
177-
sardineOnRampUrl: 'https://crypto.sandbox.sardine.ai/',
178-
transakApiUrl: 'https://global-stg.transak.com',
179-
transakApiKey: 'c20f2a0e-fe6a-4133-8fa7-77e9f84edf98'
180-
}
181-
: undefined
182-
}
173+
export const checkoutConfig: SequenceCheckoutConfig = {}

examples/next/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
33
"lib": ["dom", "dom.iterable", "esnext"],
4+
"target": "ES2020",
45
"allowJs": true,
56
"skipLibCheck": true,
67
"strict": true,

packages/connect/src/components/Connect/EmailWaasVerify.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client'
2+
13
import { Button, CheckmarkIcon, PINCodeInput, Spinner, Text } from '@0xsequence/design-system'
24
import { useEffect, useRef, useState } from 'react'
35

packages/connect/src/components/EpicAuthProvider/EpicAuthProvider.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client'
2+
13
import { Modal, ModalPrimitive, Spinner } from '@0xsequence/design-system'
24
import { useEffect, type ReactNode } from 'react'
35
import { useAccount, useConnect } from 'wagmi'

packages/connect/src/hooks/useWaasEmailAuth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client'
2+
13
import { SequenceWaaS, type SignInResponse } from '@0xsequence/waas'
24
import { useState } from 'react'
35

packages/connect/src/hooks/useWaasEmailConflict.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client'
2+
13
import { IdentityType, SequenceWaaS, type EmailConflictInfo } from '@0xsequence/waas'
24
import { useEffect, useRef, useState } from 'react'
35
import { useConnect } from 'wagmi'

0 commit comments

Comments
 (0)