Skip to content

Commit

Permalink
refactor(suite-native): legacy welcome flow removed
Browse files Browse the repository at this point in the history
  • Loading branch information
PeKne committed Jan 24, 2025
1 parent ec4d55e commit bb435fa
Show file tree
Hide file tree
Showing 31 changed files with 6 additions and 1,870 deletions.
13 changes: 0 additions & 13 deletions suite-native/biometrics/src/biometricsAtoms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ const isBiometricsOptionEnabledAtom = atomWithUnecryptedStorage<boolean>(
false,
);

const isBiometricsInitialSetupFinishedAtom = atomWithUnecryptedStorage<boolean>(
'isBiometricsInitialSetupFinished',
false,
);

const isUserAuthenticatedAtom = atom(false);
const isBiometricsOverlayVisibleAtom = atom(true);

Expand All @@ -32,14 +27,6 @@ export const useIsBiometricsEnabled = () => {
};
};

export const useIsBiometricsInitialSetupFinished = () => {
const [isBiometricsInitialSetupFinished, setIsBiometricsInitialSetupFinished] = useAtom(
isBiometricsInitialSetupFinishedAtom,
);

return { isBiometricsInitialSetupFinished, setIsBiometricsInitialSetupFinished };
};

export const useIsBiometricsOverlayVisible = () => {
const isBiometricsOptionEnabled = useAtomValue(isBiometricsOptionEnabledAtom);
const [isBiometricsOverlayVisibleAtomValue, setBiometricsOverlayVisibleAtomValue] = useAtom(
Expand Down
52 changes: 0 additions & 52 deletions suite-native/intl/src/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,6 @@ export const en = {
buttons: {
receive: 'Receive',
},

// TODO: delete this when is the new welcome flow enabled by default
biometricsModal: {
title: 'Enable biometrics protection',
description: 'You can always change this later.',
button: {
later: 'I’ll do that later in Settings',
},
resultMsg: {
error: 'Unable to enable biometrics',
success: 'Biometrics enabled',
},
},
rememberModeModal: {
title: 'Enable view-only to check balances after you disconnect your Trezor',
description:
Expand Down Expand Up @@ -776,40 +763,6 @@ export const en = {
welcomeScreen: {
subtitle: 'Take control.',
button: "Let's get started",

// TODO: this should be removed when is the new onboarding enabled by default
welcome: 'Welcome to',
subtitleLegacy: 'Securely track, manage & receive\ncrypto on the go',
trezorLink: 'Don’t have a Trezor? <trezorLink>Get one here.</trezorLink>',
nextButton: 'Get started',
},
connectTrezorScreen: {
title: 'Connect',
subtitle:
'Manage your portfolio with your Trezor hardware wallet connected directly to your mobile device.',
},
featureReceiveScreen: {
portfolioTracker: {
title: 'Receive coins',
subtitle: 'Generate addresses and QR codes to receive crypto on the go.',
},
device: {
title: 'Receive',
subtitle:
'Generate and verify addresses directly on your Trezor to get paid and receive crypto on the go.',
},
},
trackBalancesScreen: {
portfolioTracker: {
title: 'Track balances',
subtitle:
'Easily sync your coin addresses and keep up with the crypto on your hardware wallet.',
},
device: {
title: 'Track balances',
subtitle:
'Keep up with your favorite coins even without your Trezor connected. Simply sync and track your crypto from anywhere.',
},
},
analyticsConsentScreen: {
title: 'Better—with you.',
Expand All @@ -829,11 +782,6 @@ export const en = {
},
helpSwitchTitle: 'Help us anonymously',
learnMoreButton: 'More about privacy',

// TODO: this should be removed when is the new onboarding enabled by default
titleLegacy: 'Better with you',
subtitleLegacy: 'Improve Trezor Suite Lite with your anonymous data.',
learnMore: '<securityLink>More</securityLink> about privacy',
},
biometricsScreen: {
title: 'Biometrics',
Expand Down

This file was deleted.

33 changes: 0 additions & 33 deletions suite-native/module-onboarding-legacy/package.json

This file was deleted.

7 changes: 0 additions & 7 deletions suite-native/module-onboarding-legacy/redux.d.ts

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Loading

0 comments on commit bb435fa

Please sign in to comment.