chore(balance): post-merge cleanup of #182-#185 reviews (#187) #195
1 changed files with 1 additions and 5 deletions
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import type { TFunction } from "i18next";
|
|
||||||
import { Wallet, FileText, Check, ArrowRight } from "lucide-react";
|
import { Wallet, FileText, Check, ArrowRight } from "lucide-react";
|
||||||
|
|
||||||
interface BalanceOnboardingCardProps {
|
interface BalanceOnboardingCardProps {
|
||||||
|
|
@ -81,7 +80,6 @@ export default function BalanceOnboardingCard({
|
||||||
description={t("balance.onboarding.step1.description")}
|
description={t("balance.onboarding.step1.description")}
|
||||||
ctaLabel={t("balance.onboarding.step1.cta")}
|
ctaLabel={t("balance.onboarding.step1.cta")}
|
||||||
ctaHref="/balance/accounts"
|
ctaHref="/balance/accounts"
|
||||||
t={t}
|
|
||||||
/>
|
/>
|
||||||
<Step
|
<Step
|
||||||
number={2}
|
number={2}
|
||||||
|
|
@ -92,7 +90,6 @@ export default function BalanceOnboardingCard({
|
||||||
ctaLabel={t("balance.onboarding.step2.cta")}
|
ctaLabel={t("balance.onboarding.step2.cta")}
|
||||||
ctaHref="/balance/snapshot"
|
ctaHref="/balance/snapshot"
|
||||||
disabledHint={t("balance.onboarding.step2.disabledHint")}
|
disabledHint={t("balance.onboarding.step2.disabledHint")}
|
||||||
t={t}
|
|
||||||
/>
|
/>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -112,7 +109,6 @@ interface StepProps {
|
||||||
ctaLabel: string;
|
ctaLabel: string;
|
||||||
ctaHref: string;
|
ctaHref: string;
|
||||||
disabledHint?: string;
|
disabledHint?: string;
|
||||||
t: TFunction;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Step({
|
function Step({
|
||||||
|
|
@ -124,8 +120,8 @@ function Step({
|
||||||
ctaLabel,
|
ctaLabel,
|
||||||
ctaHref,
|
ctaHref,
|
||||||
disabledHint,
|
disabledHint,
|
||||||
t,
|
|
||||||
}: StepProps) {
|
}: StepProps) {
|
||||||
|
const { t } = useTranslation();
|
||||||
const isDone = state === "done";
|
const isDone = state === "done";
|
||||||
const isActive = state === "active";
|
const isActive = state === "active";
|
||||||
const isDisabled = state === "disabled";
|
const isDisabled = state === "disabled";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue