Skip to content

Commit

Permalink
chore: remove warnings screen from onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
N3TC4T committed Oct 8, 2024
1 parent ab98fbf commit cde6b8b
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 265 deletions.
1 change: 0 additions & 1 deletion src/common/constants/screens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const screens = {
Passcode: 'app.Setup.Passcode',
Biometric: 'app.Setup.Biometric',
PushNotification: 'app.Setup.PushNotification',
Disclaimers: 'app.Setup.Disclaimers',
Finish: 'app.Setup.Finish',
},
TabBar: {
Expand Down
4 changes: 2 additions & 2 deletions src/screens/Setup/Biometry/BiometryView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { Button, Spacer, Footer } from '@components/General';

import Localize from '@locale';

import { DisclaimersSetupViewProps } from '@screens/Setup/Disclaimers';
import { FinishSetupViewProps } from '@screens/Setup/Finish';
import { PushNotificationSetupViewProps } from '@screens/Setup/PushNotification';

import { AppStyles } from '@theme';
Expand Down Expand Up @@ -106,7 +106,7 @@ class BiometrySetupView extends Component<Props, State> {
PushNotificationsService.checkPermission()
.then((granted) => {
if (granted) {
Navigator.push<DisclaimersSetupViewProps>(AppScreens.Setup.Disclaimers, {});
Navigator.push<FinishSetupViewProps>(AppScreens.Setup.Finish, {});
return;
}

Expand Down
211 changes: 0 additions & 211 deletions src/screens/Setup/Disclaimers/DisclaimersView.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions src/screens/Setup/Disclaimers/index.ts

This file was deleted.

41 changes: 0 additions & 41 deletions src/screens/Setup/Disclaimers/styles.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/screens/Setup/Passcode/PasscodeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { Button, Spacer, Footer, PinInput, InfoMessage } from '@components/Gener

import Localize from '@locale';

import { DisclaimersSetupViewProps } from '@screens/Setup/Disclaimers';
import { FinishSetupViewProps } from '@screens/Setup/Finish';
import { BiometrySetupViewProps } from '@screens/Setup/Biometry';
import { PushNotificationSetupViewProps } from '@screens/Setup/PushNotification';

Expand Down Expand Up @@ -103,7 +103,7 @@ class PasscodeSetupView extends Component<Props, State> {
// if push notification already granted then go to last part
const granted = await PushNotificationsService.checkPermission();
if (granted) {
Navigator.push<DisclaimersSetupViewProps>(AppScreens.Setup.Disclaimers, {});
Navigator.push<FinishSetupViewProps>(AppScreens.Setup.Finish, {});
return;
}

Expand Down
4 changes: 2 additions & 2 deletions src/screens/Setup/PushNotification/PushNotificationView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Footer, Button, Spacer } from '@components/General';

import Localize from '@locale';

import { DisclaimersSetupViewProps } from '@screens/Setup/Disclaimers';
import { FinishSetupViewProps } from '@screens/Setup/Finish';

import { AppStyles } from '@theme';
import styles from './styles';
Expand Down Expand Up @@ -85,7 +85,7 @@ class PushNotificationSetupView extends Component<Props, State> {
};

nextStep = () => {
Navigator.push<DisclaimersSetupViewProps>(AppScreens.Setup.Disclaimers, {});
Navigator.push<FinishSetupViewProps>(AppScreens.Setup.Finish, {});
};

render() {
Expand Down
2 changes: 0 additions & 2 deletions src/screens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Onboarding from './Onboarding';
import PasscodeSetup from './Setup/Passcode';
import BiometrySetup from './Setup/Biometry';
import PushNotificationSetup from './Setup/PushNotification';
import DisclaimersSetup from './Setup/Disclaimers';
import FinishSetup from './Setup/Finish';

// TabBar
Expand Down Expand Up @@ -103,7 +102,6 @@ export {
PasscodeSetup,
BiometrySetup,
PushNotificationSetup,
DisclaimersSetup,
FinishSetup,
Home,
Events,
Expand Down

0 comments on commit cde6b8b

Please sign in to comment.