From 31175625b446cb5d18b17db23018bca8b14d280c Mon Sep 17 00:00:00 2001 From: Chi Kei Chan Date: Thu, 21 Mar 2019 16:03:30 -0700 Subject: Folder restructure (#6304) * Remove ui/app/keychains/ * Remove ui/app/img/ (unused images) * Move conversion-util to helpers/utils/ * Move token-util to helpers/utils/ * Move /helpers/*.js inside /helpers/utils/ * Move util tests inside /helpers/utils/ * Renameand move confirm-transaction/util.js to helpers/utils/ * Move higher-order-components to helpers/higher-order-components/ * Move infura-conversion.json to helpers/constants/ * Move all utility functions to helpers/utils/ * Move pages directory to top-level * Move all constants to helpers/constants/ * Move metametrics inside helpers/ * Move app and root inside pages/ * Move routes inside helpers/ * Re-organize ducks/ * Move reducers to ducks/ * Move selectors inside selectors/ * Move test out of test folder * Move action, reducer, store inside store/ * Move ui components inside ui/ * Move UI components inside ui/ * Move connected components inside components/app/ * Move i18n-helper inside helpers/ * Fix unit tests * Fix unit test * Move pages components * Rename routes component * Move reducers to ducks/index * Fix bad path in unit test --- .../confirm-page-container-navigation.component.js | 69 ---------------------- .../confirm-page-container-navigation/index.js | 1 - .../confirm-page-container-navigation/index.scss | 54 ----------------- 3 files changed, 124 deletions(-) delete mode 100755 ui/app/components/confirm-page-container/confirm-page-container-navigation/confirm-page-container-navigation.component.js delete mode 100755 ui/app/components/confirm-page-container/confirm-page-container-navigation/index.js delete mode 100755 ui/app/components/confirm-page-container/confirm-page-container-navigation/index.scss (limited to 'ui/app/components/confirm-page-container/confirm-page-container-navigation') diff --git a/ui/app/components/confirm-page-container/confirm-page-container-navigation/confirm-page-container-navigation.component.js b/ui/app/components/confirm-page-container/confirm-page-container-navigation/confirm-page-container-navigation.component.js deleted file mode 100755 index 8327f997b..000000000 --- a/ui/app/components/confirm-page-container/confirm-page-container-navigation/confirm-page-container-navigation.component.js +++ /dev/null @@ -1,69 +0,0 @@ -import React from 'react' -import PropTypes from 'prop-types' - -const ConfirmPageContainerNavigation = props => { - const { onNextTx, totalTx, positionOfCurrentTx, nextTxId, prevTxId, showNavigation, firstTx, lastTx, ofText, requestsWaitingText } = props - - return ( -
-
-
onNextTx(firstTx)}> - -
-
onNextTx(prevTxId)}> - -
-
-
-
- {positionOfCurrentTx} {ofText} {totalTx} -
-
- {requestsWaitingText} -
-
-
-
onNextTx(nextTxId)}> - -
-
onNextTx(lastTx)}> - -
-
-
- ) -} - -ConfirmPageContainerNavigation.propTypes = { - totalTx: PropTypes.number, - positionOfCurrentTx: PropTypes.number, - onNextTx: PropTypes.func, - nextTxId: PropTypes.string, - prevTxId: PropTypes.string, - showNavigation: PropTypes.bool, - firstTx: PropTypes.string, - lastTx: PropTypes.string, - ofText: PropTypes.string, - requestsWaitingText: PropTypes.string, -} - -export default ConfirmPageContainerNavigation diff --git a/ui/app/components/confirm-page-container/confirm-page-container-navigation/index.js b/ui/app/components/confirm-page-container/confirm-page-container-navigation/index.js deleted file mode 100755 index d97c1b447..000000000 --- a/ui/app/components/confirm-page-container/confirm-page-container-navigation/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from './confirm-page-container-navigation.component' diff --git a/ui/app/components/confirm-page-container/confirm-page-container-navigation/index.scss b/ui/app/components/confirm-page-container/confirm-page-container-navigation/index.scss deleted file mode 100755 index 0cf184c60..000000000 --- a/ui/app/components/confirm-page-container/confirm-page-container-navigation/index.scss +++ /dev/null @@ -1,54 +0,0 @@ -.confirm-page-container-navigation { - display: flex; - justify-content: space-between; - font: inherit; - padding: 4px 10px 4px 10px; - border-bottom: 1px solid $geyser; - flex: 0 0 auto; - - &__container { - display: flex; - } - - &__arrow { - cursor: pointer; - display: flex; - padding-left: 5px; - padding-right: 5px; - } - - &__arrow:hover { - -webkit-transform: scale(1.1); - -moz-transform: scale(1.1); - -o-transform: scale(1.1); - transform: scale(1.1); - } - - &__arrow:active { - -webkit-transform: scale(0.95); - -moz-transform: scale(0.95); - -o-transform: scale(0.95); - transform: scale(0.95); - } - - &__textcontainer { - text-align: center; - } - - &__navtext { - font-size: 9px; - font-weight: bold; - } - - &__longtext { - color: $oslo-gray; - font-size: 8px; - } - - &__imageflip { - -webkit-transform: scaleX(-1); - -moz-transform: scaleX(-1); - -o-transform: scaleX(-1); - transform: scaleX(-1); - } -} \ No newline at end of file -- cgit