Skip to content

Commit d2d5aa5

Browse files
authored
fix: 1264 fixed the onboarding steps (#1270)
* onboarding style change for step 8 * fixed onboarding step 13
1 parent 7eb01b7 commit d2d5aa5

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

packages/wallet/frontend/src/components/onboarding/OnboardingTooltip.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Button } from '@/ui/Button'
2-
import { SVGProps } from 'react'
2+
import { SVGProps, useMemo } from 'react'
33
import { TooltipRenderProps } from 'react-joyride'
44
import { 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 && (

packages/wallet/frontend/src/pages/account/[accountId].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)