diff --git a/src/features/Moonpay/Moonpay.tsx b/src/features/Moonpay/Moonpay.tsx index 987c769..ad455f0 100644 --- a/src/features/Moonpay/Moonpay.tsx +++ b/src/features/Moonpay/Moonpay.tsx @@ -21,7 +21,7 @@ export default function MoonpayPage() { const { isMobile } = useResponsive() const phantomWallet = new PhantomWalletAdapter() const isPhantomInstalled = useMemo(() => phantomWallet.readyState !== WalletReadyState.NotDetected, [phantomWallet.readyState]) - const [isNotTooTall] = useMediaQuery('(max-height: 1100px)') + const [isShortScreen, isMediumScreen] = useMediaQuery(['(max-height: 700px)', '(max-height: 1100px)']) const css = ` .beta_tooltip, .navbar, .mobile_bottom_navbar { z-index: 1 @@ -57,121 +57,124 @@ export default function MoonpayPage() { overflow="auto" position="relative" > - {null} - - + - + + + + + + + + + + + + {t('moonpay.deposit_using')} + + {t('moonpay.title')} + + + + {isPhantomInstalled ? : {t('moonpay.phantom_wallet_not_installed')}} + - + {['step1', 'step2', 'step3'].map((step, index) => ( + + + {index === 0 && } + {index === 1 && } + {index === 2 && } + + + + {t(`moonpay.${step}`)} + + {t(`moonpay.${step}_text`)} + + + ))} - - + {['apple', 'google', 'mastercard', 'visa', 'paypal'].map((name, index) => ( + + ))} - - - {t('moonpay.deposit_using')} - - {t('moonpay.title')} - - - - {isPhantomInstalled ? : {t('moonpay.phantom_wallet_not_installed')}} - - {['step1', 'step2', 'step3'].map((step, index) => ( - - - {index === 0 && } - {index === 1 && } - {index === 2 && } - - - - {t(`moonpay.${step}`)} - - {t(`moonpay.${step}_text`)} - - - ))} - - - {['apple', 'google', 'mastercard', 'visa', 'paypal'].map((name, index) => ( - - ))} - - - + + ) diff --git a/src/icons/misc/Cart.tsx b/src/icons/misc/Cart.tsx index 33cbd16..60bed64 100644 --- a/src/icons/misc/Cart.tsx +++ b/src/icons/misc/Cart.tsx @@ -1,37 +1,37 @@ -import { SvgIcon } from '../type' - -export default function Cart(props: SvgIcon) { - const { width = 20, height = 20 } = props - return ( - - - - - - - ) -} +import { SvgIcon } from '../type' + +export default function Cart(props: SvgIcon) { + const { width = 20, height = 20 } = props + return ( + + + + + + + ) +} diff --git a/src/icons/misc/Phantom.tsx b/src/icons/misc/Phantom.tsx index e29b5be..4a47b90 100644 --- a/src/icons/misc/Phantom.tsx +++ b/src/icons/misc/Phantom.tsx @@ -1,28 +1,28 @@ -import { SvgIcon } from '../type' - -export default function Phantom(props: SvgIcon) { - const { width = 23, height = 22 } = props - return ( - - - - - - - - - - - ) -} +import { SvgIcon } from '../type' + +export default function Phantom(props: SvgIcon) { + const { width = 23, height = 22 } = props + return ( + + + + + + + + + + + ) +} diff --git a/src/icons/misc/SolGrey.tsx b/src/icons/misc/SolGrey.tsx index b0603b6..65fdc1c 100644 --- a/src/icons/misc/SolGrey.tsx +++ b/src/icons/misc/SolGrey.tsx @@ -1,28 +1,28 @@ -import { SvgIcon } from '../type' - -export default function SolGrey(props: SvgIcon) { - const { width = 16, height = 16 } = props - return ( - - - - - - - - - - - ) -} +import { SvgIcon } from '../type' + +export default function SolGrey(props: SvgIcon) { + const { width = 16, height = 16 } = props + return ( + + + + + + + + + + + ) +}