diff --git a/packages/checkout/src/constants/index.ts b/packages/checkout/src/constants/index.ts index c4843b68..0e7b7aaa 100644 --- a/packages/checkout/src/constants/index.ts +++ b/packages/checkout/src/constants/index.ts @@ -1,3 +1,4 @@ export const HEADER_HEIGHT = '54px' export const CARD_HEIGHT = '130px' -export const CARD_HEIGHT_MOBILE = '180px' \ No newline at end of file +export const CARD_HEIGHT_MOBILE = '180px' +export const PAYMENT_SELECTION_MODAL_HEIGHT = '786px' \ No newline at end of file diff --git a/packages/checkout/src/shared/components/KitCheckoutProvider.tsx b/packages/checkout/src/shared/components/KitCheckoutProvider.tsx index 2da65565..db6eb977 100644 --- a/packages/checkout/src/shared/components/KitCheckoutProvider.tsx +++ b/packages/checkout/src/shared/components/KitCheckoutProvider.tsx @@ -19,6 +19,7 @@ import { TransferFundsContextProvider, TransferFundsSettings, } from '../../contexts' +import { PAYMENT_SELECTION_MODAL_HEIGHT } from '../../constants' import { NavigationHeader } from '../../shared/components/NavigationHeader' import { PendingTransaction, @@ -250,7 +251,7 @@ export const KitCheckoutContent = ({ children }: KitCheckoutProvider) => { { + return ( + + footer + + ) +} \ No newline at end of file diff --git a/packages/checkout/src/views/PaymentSelection/PayWithCrypto/index.tsx b/packages/checkout/src/views/PaymentSelection/PayWithCrypto/index.tsx index 4f221e12..bd7403f4 100644 --- a/packages/checkout/src/views/PaymentSelection/PayWithCrypto/index.tsx +++ b/packages/checkout/src/views/PaymentSelection/PayWithCrypto/index.tsx @@ -1,5 +1,6 @@ import { useState } from 'react' +import { Box, Button, Text, TextInput, SearchIcon, Scroll } from '@0xsequence/design-system' import { PayWithMainCurrency } from './PayWithMainCurrency' import { SwapAndPay } from './SwapAndPay' import { SelectPaymentSettings } from '../../../contexts' @@ -16,21 +17,50 @@ export const PayWithCrypto = ({ setDisableButtons }: PayWithCryptoProps) => { const { enableSwapPayments } = settings + const [search, setSearch] = useState('') return ( - <> - - {enableSwapPayments && ( - + + setSearch(ev.target.value)} + placeholder="Search your wallet" + data-1p-ignore + /> + + + + Select a cryptocurrency + + + + - )} - + {enableSwapPayments && ( + + )} + +