Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions examples/react/src/components/Connected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ import { delay, getCheckoutSettings, getOrderbookCalldata } from '../utils'
// append ?debug to url to enable debug mode
const searchParams = new URLSearchParams(location.search)
const isDebugMode = searchParams.has('debug')
const checkoutProvider = searchParams.get('checkoutProvider')
const onRampProvider = searchParams.get('onRampProvider')

export const Connected = () => {
const { setOpenConnectModal } = useOpenConnectModal()
Expand Down Expand Up @@ -391,8 +393,8 @@ export const Connected = () => {
recipientAddress: address,
currencyAddress,
collectionAddress,
creditCardProviders: ['sardine', 'transak'],
onRampProvider: TransactionOnRampProvider.sardine,
creditCardProviders: [checkoutProvider || 'transak'],
onRampProvider: onRampProvider ? (onRampProvider as TransactionOnRampProvider) : TransactionOnRampProvider.transak,
transakConfig: {
contractId,
apiKey: '5911d9ec-46b5-48fa-a755-d59a715ff0cf'
Expand Down Expand Up @@ -444,7 +446,7 @@ export const Connected = () => {
const onClickAddFunds = () => {
triggerAddFunds({
walletAddress: address || '',
provider: TransactionOnRampProvider.transak
provider: onRampProvider ? (onRampProvider as TransactionOnRampProvider) : TransactionOnRampProvider.transak
})
}

Expand Down
3 changes: 3 additions & 0 deletions packages/connect/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,9 @@ export const styles = String.raw`
.w-screen {
width: 100vw;
}
.max-w-1 {
max-width: calc(var(--spacing) * 1);
}
.max-w-\[532px\] {
max-width: 532px;
}
Expand Down