File tree Expand file tree Collapse file tree
packages/wallet/frontend/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Button } from '@/ui/Button'
2- import { SVGProps } from 'react'
2+ import { SVGProps , useMemo } from 'react'
33import { TooltipRenderProps } from 'react-joyride'
44import { ONBOARDING_STEPS } from './Onboarding'
55
@@ -15,12 +15,17 @@ export const OnboardingTooltip = ({
1515} : OnboardingTooltipProps ) => {
1616 const IconStep : ( props : SVGProps < SVGSVGElement > ) => JSX . Element =
1717 ONBOARDING_STEPS [ index ] . Icon
18+
19+ const iconClassName = useMemo ( ( ) => {
20+ return `mr-4 ${ index === 8 ? 'w-48' : 'w-20' } `
21+ } , [ index ] )
22+
1823 return (
1924 < div
2025 { ...tooltipProps }
2126 className = "flex max-w-xl items-center rounded-lg bg-white p-3 font-semibold text-green"
2227 >
23- { IconStep && < IconStep className = "mr-4 w-20" /> }
28+ { IconStep && < IconStep className = { iconClassName } /> }
2429 < div className = "flex flex-col justify-center" >
2530 < div className = "pb-2" > { step . content } </ div >
2631 { index === 0 && (
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ const AccountPage: NextPageWithLayout<AccountPageProps> = ({
220220 walletAddress = { walletAddress }
221221 isWM = { false }
222222 idOnboarding = {
223- account . assetCode === 'USD ' && index === 0
223+ account . assetCode === 'EUR ' && index === 0
224224 ? `viewTransactions`
225225 : ''
226226 }
You can’t perform that action at this time.
0 commit comments