Skip to content

Commit 5aa7b18

Browse files
jjramireznZishan-7kushagrasaratheHugo0
committed
Prod to staging (#1124)
* HOTFIX - IBAN country detection and incorrect bank acc details (#1094) * Fix: Iban country detection and incorrect bank acc details * Fix: update IBAN country validation to use correct locale string comparison * add validations for US and mexican bank accounts * fix typo * fix claim flow and create a reusable function for getting 3 letter code * fix country code mismatch * fix: show error below input field * remove unnecessary checks * remove unnecessary CLABE check * Prod LP v2.1 (#1098) * feat: lpv2.1 * fix: gigaclouds, font and exchange widget * fixes and improvements * remove duplicate export * remove unused component * Fix: Landing page hero section responsiveness issue (#1107) * fix: hero section responsiveness issue * fix: stars position * fix height on desktop * remove unused code * fix margins (#1113) * [TASK-14052] Prod release 105 (#1122) * feat: handle send link claims to bank account for peanut users (#1078) * reafactor: create reusable country list component and use it for all the flows * feat: reusable user accounts components * feat: handle different cases based on kyc status for bank claim * fix: account creation * chore: add docstring to hooks * chore: better comments for bank flow manager * fix: kyc modal closing after tos acceptance issue * fix: remove bank acc caching from withdraw flow * fix: update confirm claim modal copy * fix: remove bank acc caching from claim flow * fix: navheader title * remove duplicate debounce code and use `useDebounce` hook instead (#1079) * Landing page v2.1 (#1089) * lpv2.1 part 1 * Add exchange widget * add and integrate exchange API * add yourMoney component bg * update landing countries svg * integrate frankfurter API * fixes and improvements * decrease hero section height * allow max 2 decimal places * Add `/exchange` route * fix: overlay * make destination amount editable and bugg fixes * some fixes & currency improvements * crucial commit * fix checkmark, font size and weight --------- Co-authored-by: Hugo Montenegro <h@hugo0.com> * [TASK-13186] refactor: use networkName instead of axelarChainName (#1095) * refactor: use networkName instead of axelarChainName * fix: types * fix: onramp currency (#1096) * fix: stretched favicon (#1099) * [TASK-13971] fix: scientific notation in eip681 parsing (#1097) * fix: scientific notation in eip681 parsing * fix: qr handling tests * fix: peanut sdk mock * pull iban hotfix (#1100) * fix: claim flow bugs (#1102) * fix: cross chain claim * fix: full name issue on confirm bank claim view * fix: back navigation on desktop views * Fix back button not working on /profile (#1101) * Fix back button not working * fix public profile page * extract internal navigation logic to utility function * fix: send link claims to us bank accounts (#1108) * fix: usa bank account claims * fix: show bank account details in confirm claim view * Sync Landing page changes (#1111) * reduce clouds size and update font * fix: hero section responsiveness issue * fix: formatting errors * add currency animation * fix: us bank claims after kyc for logged in users (#1112) * fix: trim account form inputs for spaces (#1114) * [TASK-14107] fix: don't allow claiming on xChain if route is not found (#1115) * fix: don't allow claiming on xChain if route is not found * fix(claim): use correct decimals for min receive amount * feat: handle redirect uri when on unsupported browsers (#1117) * feat: handle redirect uri when on unsupported browsers * fix: confirm bank claim ui rows for iban guest claim * remove animation (#1118) * fix: formatting --------- Co-authored-by: Kushagra Sarathe <76868364+kushagrasarathe@users.noreply.github.com> Co-authored-by: Mohd Zishan <72738005+Zishan-7@users.noreply.github.com> Co-authored-by: Hugo Montenegro <h@hugo0.com> --------- Co-authored-by: Mohd Zishan <72738005+Zishan-7@users.noreply.github.com> Co-authored-by: Kushagra Sarathe <76868364+kushagrasarathe@users.noreply.github.com> Co-authored-by: Hugo Montenegro <h@hugo0.com>
1 parent 432acfc commit 5aa7b18

9 files changed

Lines changed: 18 additions & 10 deletions

File tree

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import {
1010
SecurityBuiltIn,
1111
SendInSeconds,
1212
YourMoney,
13+
RegulatedRails,
1314
} from '@/components/LandingPage'
1415
import Footer from '@/components/LandingPage/Footer'
15-
import { RegulatedRails } from '@/components/LandingPage/RegulatedRails'
1616
import { useFooterVisibility } from '@/context/footerVisibility'
1717
import { useEffect, useState, useRef } from 'react'
1818

src/assets/illustrations/landing-countries.svg

Lines changed: 1 addition & 1 deletion
Loading

src/components/AddWithdraw/AddWithdrawCountriesList.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
'use client'
22

3-
import { COUNTRY_SPECIFIC_METHODS, countryData, SpecificPaymentMethod } from '@/components/AddMoney/consts'
3+
import {
4+
COUNTRY_SPECIFIC_METHODS,
5+
countryCodeMap,
6+
countryData,
7+
SpecificPaymentMethod,
8+
} from '@/components/AddMoney/consts'
49
import StatusBadge from '@/components/Global/Badges/StatusBadge'
510
import { IconName } from '@/components/Global/Icons/Icon'
611
import NavHeader from '@/components/Global/NavHeader'
@@ -11,7 +16,7 @@ import Image, { StaticImageData } from 'next/image'
1116
import { useParams, useRouter } from 'next/navigation'
1217
import EmptyState from '../Global/EmptyStates/EmptyState'
1318
import { useAuth } from '@/context/authContext'
14-
import { useEffect, useRef, useState } from 'react'
19+
import { useEffect, useMemo, useRef, useState } from 'react'
1520
import { InitiateKYCModal } from '@/components/Kyc'
1621
import { DynamicBankAccountForm, IBankAccountDetails } from './DynamicBankAccountForm'
1722
import { addBankAccount, updateUserById } from '@/app/actions/users'

src/components/AddWithdraw/DynamicBankAccountForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ export const DynamicBankAccountForm = forwardRef<{ handleSubmit: () => void }, D
5454
const [isSubmitting, setIsSubmitting] = useState(false)
5555
const [submissionError, setSubmissionError] = useState<string | null>(null)
5656
const [showBicField, setShowBicField] = useState(false)
57-
const { country: countryName } = useParams()
57+
const { country: countryNameParams } = useParams()
5858
const { amountToWithdraw } = useWithdrawFlow()
5959
const [firstName, ...lastNameParts] = (user?.user.fullName ?? '').split(' ')
6060
const lastName = lastNameParts.join(' ')
6161

62-
let selectedCountry = (countryNameFromProps ?? (countryName as string)).toLowerCase()
62+
let selectedCountry = (countryNameFromProps ?? (countryNameParams as string)).toLowerCase()
6363

6464
const {
6565
control,

src/components/LandingPage/dropLink.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use client'
12
import Image from 'next/image'
23
import { motion } from 'framer-motion'
34
import { Button } from '../0_Bruddle'

src/components/LandingPage/hero.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ export function Hero({ primaryCta, secondaryCta, buttonVisible, buttonScale = 1
139139
</Button>
140140
</a>
141141

142-
<p className="mx-auto mt-2 text-xs italic text-n-1 md:text-sm">Takes 10 seconds</p>
142+
<p className="font-roboto-flex-bold mx-auto mt-2 text-xs italic text-n-1 md:text-sm">
143+
Takes 10 seconds
144+
</p>
143145

144146
{renderArrows(variant, arrowOpacity, buttonVisible)}
145147
</motion.div>

src/components/LandingPage/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ export * from './nutsDivider'
77
export * from './securityBuiltIn'
88
export * from './sendInSeconds'
99
export * from './yourMoney'
10+
export * from './RegulatedRails'

src/components/LandingPage/noFees.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export function NoFees() {
141141
/>
142142
</div>
143143

144-
<div className="relative mx-auto max-w-3xl text-center">
144+
<div className="relative mx-auto w-full max-w-3xl text-center">
145145
{/* Animated stars */}
146146
<motion.img
147147
src={Star.src}

src/components/LandingPage/yourMoney.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ import iphoneYourMoney3 from '@/assets/iphone-ss/iphone-your-money-3.png'
44
import freeGlobalTransfers from '@/assets/illustrations/free-global-transfers.svg'
55
import payAnyoneAnywhere from '@/assets/illustrations/pay-anyone-anywhere.svg'
66
import getPaidWorldwide from '@/assets/illustrations/get-paid-worldwide.svg'
7-
8-
import { Button } from '../0_Bruddle'
97
import Image from 'next/image'
108
import { LandingCountries } from '@/assets'
9+
import { Button } from '../0_Bruddle'
1110

1211
interface Feature {
1312
id: number

0 commit comments

Comments
 (0)