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

[WIP] [wallet/mobile] task: remove opt-in module and other unused code #328

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft
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
36 changes: 0 additions & 36 deletions src/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ import ScanGenericQRCode from '@src/screens/ScanGenericQRCode';
import CustomFlashMessage from '@src/components/organisms/CustomFlashMessage';
import { showMessage } from 'react-native-flash-message';
import LinkedKeysDetails from '@src/screens/LinkedKeysDetails';
import Welcome from '@src/screens/PostLaunchOptIn/Welcome';
import OptInAccountDetails from '@src/screens/PostLaunchOptIn/OptInAccountDetails';
import OptInSelectSymbolAccount from '@src/screens/PostLaunchOptIn/OptInSelectSymbolAccount';
import OptInReview from '@src/screens/PostLaunchOptIn/OptInReview';
import NIS1AccountDetails from '@src/screens/PostLaunchOptIn/NIS1AccountDetails';
import OptInSelectSymbolMultisigDestination from '@src/screens/PostLaunchOptIn/OptInSelectSymbolMultisigDestination';

export const BASE_SCREEN_NAME = 'com.nemgroup.wallet';
export const CUSTOM_FLASH_MESSAGE = `${BASE_SCREEN_NAME}.CUSTOM_FLASH_MESSAGE`;
Expand Down Expand Up @@ -70,12 +64,6 @@ export const ACCOUNT_DETAILS_SCREEN = `${BASE_SCREEN_NAME}.ACCOUNT_DETAILS_SCREE
export const CREATE_ACCOUNT_SCREEN = `${BASE_SCREEN_NAME}.CREATE_ACCOUNT_SCREEN`;
export const QR_SCANNER_SCREEN = `${BASE_SCREEN_NAME}.QR_SCANNER_SCREEN`;
export const SHOW_LINKED_KEYS_SCREEN = `${BASE_SCREEN_NAME}.SHOW_LINKED_KEYS_SCREEN`;
export const OPTIN_WELCOME = `${BASE_SCREEN_NAME}.OPTIN_WELCOME`;
export const OPTIN_ACCOUNT_DETAIL = `${BASE_SCREEN_NAME}.OPTIN_ACCOUNT_DETAIL`;
export const OPTIN_SYMBOL_ACCOUNT = `${BASE_SCREEN_NAME}.OPTIN_SYMBOL_ACCOUNT`;
export const OPTIN_FINISH = `${BASE_SCREEN_NAME}.OPTIN_FINISH`;
export const NIS1_ACCOUNT_DETAILS = `${BASE_SCREEN_NAME}.NIS1_ACCOUNT_DETAILS`;
export const OPTIN_SELECT_MULTISIG_DESTINATION = `${BASE_SCREEN_NAME}.OPTIN_SELECT_MULTISIG_DESTINATION`;

interface MessageProps {
message: string;
Expand Down Expand Up @@ -115,12 +103,6 @@ export class Router {
[CONTACT_PROFILE_SCREEN, ContactProfile],
[QR_SCANNER_SCREEN, QRScanner],
[SHOW_LINKED_KEYS_SCREEN, LinkedKeysDetails],
[OPTIN_WELCOME, Welcome],
[OPTIN_ACCOUNT_DETAIL, OptInAccountDetails],
[OPTIN_SYMBOL_ACCOUNT, OptInSelectSymbolAccount],
[OPTIN_FINISH, OptInReview],
[NIS1_ACCOUNT_DETAILS, NIS1AccountDetails],
[OPTIN_SELECT_MULTISIG_DESTINATION, OptInSelectSymbolMultisigDestination],
];

static registerScreens() {
Expand Down Expand Up @@ -218,24 +200,6 @@ export class Router {
static goToShowLinkedKeys(passProps, parentComponent?) {
return Router.goToScreen(SHOW_LINKED_KEYS_SCREEN, passProps, parentComponent);
}
static goToOptInWelcome(passProps, parentComponent?) {
return Router.goToScreen(OPTIN_WELCOME, passProps, parentComponent);
}
static goToOptInAccountDetails(passProps, parentComponent?) {
return Router.goToScreen(OPTIN_ACCOUNT_DETAIL, passProps, parentComponent);
}
static goToOptInSelectSymbolAccount(passProps, parentComponent?) {
return Router.goToScreen(OPTIN_SYMBOL_ACCOUNT, passProps, parentComponent);
}
static goToOptInFinish(passProps, parentComponent?) {
return Router.goToScreen(OPTIN_FINISH, passProps, parentComponent);
}
static goToNIS1AccountDetails(passProps, parentComponent?) {
return Router.goToScreen(NIS1_ACCOUNT_DETAILS, passProps, parentComponent);
}
static goToOptinSelectSymbolMultisigDestination(passProps, parentComponent?) {
return Router.goToScreen(OPTIN_SELECT_MULTISIG_DESTINATION, passProps, parentComponent);
}

static goToScreen(screen: string, passProps, parentComponent?) {
setDefaultNavOptions();
Expand Down
24 changes: 0 additions & 24 deletions src/components/atoms/BottomModal/BottomModal.js

This file was deleted.

23 changes: 0 additions & 23 deletions src/components/atoms/BottomModal/BottomModal.styl

This file was deleted.

93 changes: 0 additions & 93 deletions src/components/atoms/CompoundButton/compoundbutton.styl

This file was deleted.

164 changes: 0 additions & 164 deletions src/components/atoms/CompoundButton/index.js

This file was deleted.

Empty file removed src/components/controls/Image.js
Empty file.
Loading