diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-06-26 03:06:57 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-07-07 07:27:08 +0800 |
commit | e89549846fd3bd520b99740c7845f48f368c3afa (patch) | |
tree | 6e248d21c75c4336890229aaae4e07c261a59b8e /ui/app/routes.js | |
parent | ea9d51e427b8e607e612a01629bebf153e516ad9 (diff) | |
download | tangerine-wallet-browser-e89549846fd3bd520b99740c7845f48f368c3afa.tar tangerine-wallet-browser-e89549846fd3bd520b99740c7845f48f368c3afa.tar.gz tangerine-wallet-browser-e89549846fd3bd520b99740c7845f48f368c3afa.tar.bz2 tangerine-wallet-browser-e89549846fd3bd520b99740c7845f48f368c3afa.tar.lz tangerine-wallet-browser-e89549846fd3bd520b99740c7845f48f368c3afa.tar.xz tangerine-wallet-browser-e89549846fd3bd520b99740c7845f48f368c3afa.tar.zst tangerine-wallet-browser-e89549846fd3bd520b99740c7845f48f368c3afa.zip |
Refactor data flow, signature request routing
Diffstat (limited to 'ui/app/routes.js')
-rw-r--r-- | ui/app/routes.js | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/ui/app/routes.js b/ui/app/routes.js index 2d73bc768..7ac606b1a 100644 --- a/ui/app/routes.js +++ b/ui/app/routes.js @@ -21,14 +21,13 @@ const INITIALIZE_NOTICE_ROUTE = '/initialize/notice' const INITIALIZE_BACKUP_PHRASE_ROUTE = '/initialize/backup-phrase' const INITIALIZE_CONFIRM_SEED_ROUTE = '/initialize/confirm-phrase' -const CONFIRM_TRANSACTION_BASE = '/confirm-transaction' -const CONFIRM_TRANSACTION_ROUTE = `${CONFIRM_TRANSACTION_BASE}` -const CONFIRM_SEND_ETHER_ROUTE = `${CONFIRM_TRANSACTION_BASE}/send-ether` -const CONFIRM_SEND_TOKEN_ROUTE = `${CONFIRM_TRANSACTION_BASE}/send-token` -const CONFIRM_DEPLOY_CONTRACT_ROUTE = `${CONFIRM_TRANSACTION_BASE}/deploy-contract` -const CONFIRM_APPROVE_ROUTE = `${CONFIRM_TRANSACTION_BASE}/approve` -const CONFIRM_TOKEN_METHOD_ROUTE = `${CONFIRM_TRANSACTION_BASE}/token-method` -const SIGNATURE_REQUEST_ROUTE = `${CONFIRM_TRANSACTION_BASE}/signature-request` +const CONFIRM_TRANSACTION_ROUTE = '/confirm-transaction' +const CONFIRM_SEND_ETHER_PATH = '/send-ether' +const CONFIRM_SEND_TOKEN_PATH = '/send-token' +const CONFIRM_DEPLOY_CONTRACT_PATH = '/deploy-contract' +const CONFIRM_APPROVE_PATH = '/approve' +const CONFIRM_TOKEN_METHOD_PATH = '/token-method' +const SIGNATURE_REQUEST_PATH = '/signature-request' module.exports = { DEFAULT_ROUTE, @@ -54,10 +53,10 @@ module.exports = { INITIALIZE_BACKUP_PHRASE_ROUTE, INITIALIZE_CONFIRM_SEED_ROUTE, CONFIRM_TRANSACTION_ROUTE, - CONFIRM_SEND_ETHER_ROUTE, - CONFIRM_SEND_TOKEN_ROUTE, - CONFIRM_DEPLOY_CONTRACT_ROUTE, - CONFIRM_APPROVE_ROUTE, - CONFIRM_TOKEN_METHOD_ROUTE, - SIGNATURE_REQUEST_ROUTE, + CONFIRM_SEND_ETHER_PATH, + CONFIRM_SEND_TOKEN_PATH, + CONFIRM_DEPLOY_CONTRACT_PATH, + CONFIRM_APPROVE_PATH, + CONFIRM_TOKEN_METHOD_PATH, + SIGNATURE_REQUEST_PATH, } |