Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(clean): delete onboarding rewrite that had no future #1525

Merged
merged 4 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
301 changes: 0 additions & 301 deletions src/hooks/transfers/useTransfers.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions src/lib/testFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ class TestFlags {
return this.queryParams.ref;
}

get onboardingRewrite() {
return !!this.queryParams.onboarding_rewrite;
}

get showInstantDepositToggle() {
return !!this.queryParams.funkit_toggle;
}
Expand Down
20 changes: 4 additions & 16 deletions src/views/dialogs/WithdrawDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ import { useStringGetter } from '@/hooks/useStringGetter';
import { layoutMixins } from '@/styles/layoutMixins';

import { Dialog, DialogPlacement } from '@/components/Dialog';
import { Icon, IconName } from '@/components/Icon';
import { WithdrawForm } from '@/views/forms/AccountManagementForms/WithdrawForm';
import { WithdrawForm as WithdrawFormV2 } from '@/views/forms/AccountManagementFormsNew/WithdrawForm/WithdrawForm';

import { testFlags } from '@/lib/testFlags';

export const WithdrawDialog = ({ setIsOpen }: DialogProps<WithdrawDialogProps>) => {
const stringGetter = useStringGetter();
Expand All @@ -22,20 +18,12 @@ export const WithdrawDialog = ({ setIsOpen }: DialogProps<WithdrawDialogProps>)
<Dialog
isOpen
setIsOpen={setIsOpen}
title={
testFlags.onboardingRewrite ? (
<span tw="row gap-[0.5ch]">
<Icon iconName={IconName.Usdc} size="1.5em" />
{/* TODO [onboarding-rewrite]: localize */}
{stringGetter({ key: STRING_KEYS.WITHDRAW })} USDC
</span>
) : (
stringGetter({ key: STRING_KEYS.WITHDRAW })
)
}
title={stringGetter({ key: STRING_KEYS.WITHDRAW })}
placement={isTablet ? DialogPlacement.FullScreen : DialogPlacement.Default}
>
<$Content>{testFlags.onboardingRewrite ? <WithdrawFormV2 /> : <WithdrawForm />}</$Content>
<$Content>
<WithdrawForm />
</$Content>
</Dialog>
);
};
Expand Down
10 changes: 0 additions & 10 deletions src/views/forms/AccountManagementFormsNew/FeeLevelTag.tsx

This file was deleted.

Loading
Loading