Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SamueleA committed May 1, 2024
1 parent 5409826 commit a479466
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 306 deletions.
21 changes: 0 additions & 21 deletions packages/checkout/src/api/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,27 +208,6 @@ export const fetchSardineClientToken = async (order: SardineCheckout, isDev: boo

const { resp: { orderId, token } } = await res.json()

// const res = await apiClient.getSardineNFTCheckoutToken({
// referenceId,
// expiresIn: 3600,
// paymentMethodTypeConfig: {
// enabled: ['us_debit', 'us_credit', 'international_debit', 'international_credit', 'ach'],
// default: order.defaultPaymentMethodType
// },
// nft: {
// name: tokenMetadata?.name || 'Unknown',
// imageUrl: tokenMetadata?.image || '',
// network: networks[order.chainId as ChainId].name,
// recipientAddress: order.recipientAddress,
// platform: 'horizon',
// blockchainNftId: order.blockchainNftId,
// contractAddress: order.contractAddress,
// executionType: 'smart_contract',
// quantity: Number(order.quantity),
// decimals: Number(order.decimals)
// }
// })

return ({
token,
orderId,
Expand Down
230 changes: 0 additions & 230 deletions packages/checkout/src/shared/components/PaperTransaction.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions packages/checkout/src/views/CheckoutSelection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ export const CheckoutSelection = () => {
const isDev = settings?.sardineCheckout?.isDev || false
const { token, orderId } = await fetchSardineClientToken(settings.sardineCheckout, isDev, tokenMetadata)

// const url = `https://crypto.sardine.ai/?client_token=${token}&show_features=true`
// const windowName = 'SardineCrypto'
// const windowSize = 'width=800,height=600'
// window.open(url, windowName, windowSize)

setNavigation({
location: 'transaction-pending',
params: { orderId, authToken: token }
Expand Down
28 changes: 0 additions & 28 deletions packages/checkout/src/views/PaperTransactionForm.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions packages/checkout/src/views/PendingTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,6 @@ export const PendingTransaction = () => {
}
}, [])

// return (
// <Box style={{ height: '500px' }}>
// <Box
// position="absolute"
// top="0"
// left="0"
// width="full"
// height="full"
// flexDirection="column"
// alignItems="center"
// justifyContent="center"
// >
// <Spinner size="lg" style={{ width: '60px', height: '60px' }} />
// <Text variant="medium" color="text50" textAlign="center" marginTop="8">
// Order in progress. <br />
// This may take a few minutes. <br />
// Please do not close this window.
// </Text>
// </Box>
// </Box>
// )
return (
<Box alignItems="center" justifyContent="center" style={{ height: '620px' }}>
<iframe
Expand Down
1 change: 0 additions & 1 deletion packages/kit/src/hooks/useWaasRevalidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { useAccount } from 'wagmi'


export function useWaasRevalidation(
// waasConnector?: any
) {
const { connector } = useAccount()

Expand Down

0 comments on commit a479466

Please sign in to comment.