Remove send_ directory, revert to just having send

Revert accidentally changed constants.

Require defaults in ens-input, gas-fee-display and confirm screens.
feature/default_network_editable
Dan 6 years ago committed by Whymarrh Whitby
parent f31e87dcd5
commit b3d78ed8a1
  1. 2
      ui/app/actions.js
  2. 2
      ui/app/app.js
  3. 6
      ui/app/components/customize-gas-modal/index.js
  4. 2
      ui/app/components/dropdowns/account-dropdown-mini.js
  5. 2
      ui/app/components/ens-input.js
  6. 2
      ui/app/components/pending-tx/confirm-deploy-contract.js
  7. 6
      ui/app/components/pending-tx/confirm-send-ether.js
  8. 6
      ui/app/components/pending-tx/confirm-send-token.js
  9. 0
      ui/app/components/send/README.md
  10. 0
      ui/app/components/send/account-list-item/account-list-item-README.md
  11. 2
      ui/app/components/send/account-list-item/account-list-item.component.js
  12. 0
      ui/app/components/send/account-list-item/account-list-item.container.js
  13. 0
      ui/app/components/send/account-list-item/account-list-item.scss
  14. 0
      ui/app/components/send/account-list-item/index.js
  15. 2
      ui/app/components/send/account-list-item/tests/account-list-item-component.test.js
  16. 0
      ui/app/components/send/account-list-item/tests/account-list-item-container.test.js
  17. 4
      ui/app/components/send/currency-display/currency-display.js
  18. 1
      ui/app/components/send/currency-display/index.js
  19. 0
      ui/app/components/send/index.js
  20. 0
      ui/app/components/send/send-content/index.js
  21. 0
      ui/app/components/send/send-content/send-amount-row/README.md
  22. 0
      ui/app/components/send/send-content/send-amount-row/amount-max-button/amount-max-button.component.js
  23. 0
      ui/app/components/send/send-content/send-amount-row/amount-max-button/amount-max-button.container.js
  24. 0
      ui/app/components/send/send-content/send-amount-row/amount-max-button/amount-max-button.selectors.js
  25. 0
      ui/app/components/send/send-content/send-amount-row/amount-max-button/amount-max-button.utils.js
  26. 0
      ui/app/components/send/send-content/send-amount-row/amount-max-button/index.js
  27. 0
      ui/app/components/send/send-content/send-amount-row/amount-max-button/tests/amount-max-button-component.test.js
  28. 0
      ui/app/components/send/send-content/send-amount-row/amount-max-button/tests/amount-max-button-container.test.js
  29. 0
      ui/app/components/send/send-content/send-amount-row/amount-max-button/tests/amount-max-button-selectors.test.js
  30. 0
      ui/app/components/send/send-content/send-amount-row/amount-max-button/tests/amount-max-button-utils.test.js
  31. 0
      ui/app/components/send/send-content/send-amount-row/index.js
  32. 2
      ui/app/components/send/send-content/send-amount-row/send-amount-row.component.js
  33. 0
      ui/app/components/send/send-content/send-amount-row/send-amount-row.container.js
  34. 0
      ui/app/components/send/send-content/send-amount-row/send-amount-row.scss
  35. 0
      ui/app/components/send/send-content/send-amount-row/send-amount-row.selectors.js
  36. 2
      ui/app/components/send/send-content/send-amount-row/tests/send-amount-row-component.test.js
  37. 0
      ui/app/components/send/send-content/send-amount-row/tests/send-amount-row-container.test.js
  38. 0
      ui/app/components/send/send-content/send-amount-row/tests/send-amount-row-selectors.test.js
  39. 0
      ui/app/components/send/send-content/send-content-README.md
  40. 0
      ui/app/components/send/send-content/send-content.component.js
  41. 0
      ui/app/components/send/send-content/send-content.scss
  42. 0
      ui/app/components/send/send-content/send-dropdown-list/index.js
  43. 0
      ui/app/components/send/send-content/send-dropdown-list/send-dropdown-list.component.js
  44. 0
      ui/app/components/send/send-content/send-dropdown-list/tests/send-dropdown-list-component.test.js
  45. 0
      ui/app/components/send/send-content/send-from-row/from-dropdown/from-dropdown-README.md
  46. 0
      ui/app/components/send/send-content/send-from-row/from-dropdown/from-dropdown.component.js
  47. 0
      ui/app/components/send/send-content/send-from-row/from-dropdown/from-dropdown.scss
  48. 0
      ui/app/components/send/send-content/send-from-row/from-dropdown/index.js
  49. 0
      ui/app/components/send/send-content/send-from-row/from-dropdown/tests/from-dropdown-component.test.js
  50. 0
      ui/app/components/send/send-content/send-from-row/index.js
  51. 0
      ui/app/components/send/send-content/send-from-row/send-from-row-README.md
  52. 0
      ui/app/components/send/send-content/send-from-row/send-from-row.component.js
  53. 0
      ui/app/components/send/send-content/send-from-row/send-from-row.container.js
  54. 0
      ui/app/components/send/send-content/send-from-row/send-from-row.selectors.js
  55. 0
      ui/app/components/send/send-content/send-from-row/tests/send-from-row-component.test.js
  56. 0
      ui/app/components/send/send-content/send-from-row/tests/send-from-row-container.test.js
  57. 0
      ui/app/components/send/send-content/send-from-row/tests/send-from-row-selectors.test.js
  58. 0
      ui/app/components/send/send-content/send-gas-row/README.md
  59. 0
      ui/app/components/send/send-content/send-gas-row/gas-fee-display/gas-fee-display.component.js
  60. 0
      ui/app/components/send/send-content/send-gas-row/gas-fee-display/index.js
  61. 0
      ui/app/components/send/send-content/send-gas-row/gas-fee-display/test/gas-fee-display.component.test.js
  62. 0
      ui/app/components/send/send-content/send-gas-row/index.js
  63. 0
      ui/app/components/send/send-content/send-gas-row/send-gas-row.component.js
  64. 0
      ui/app/components/send/send-content/send-gas-row/send-gas-row.container.js
  65. 0
      ui/app/components/send/send-content/send-gas-row/send-gas-row.scss
  66. 0
      ui/app/components/send/send-content/send-gas-row/send-gas-row.selectors.js
  67. 0
      ui/app/components/send/send-content/send-gas-row/tests/send-gas-row-component.test.js
  68. 0
      ui/app/components/send/send-content/send-gas-row/tests/send-gas-row-container.test.js
  69. 0
      ui/app/components/send/send-content/send-gas-row/tests/send-gas-row-selectors.test.js
  70. 0
      ui/app/components/send/send-content/send-row-wrapper/index.js
  71. 0
      ui/app/components/send/send-content/send-row-wrapper/send-row-error-message/index.js
  72. 0
      ui/app/components/send/send-content/send-row-wrapper/send-row-error-message/send-row-error-message-README.md
  73. 0
      ui/app/components/send/send-content/send-row-wrapper/send-row-error-message/send-row-error-message.component.js
  74. 0
      ui/app/components/send/send-content/send-row-wrapper/send-row-error-message/send-row-error-message.container.js
  75. 0
      ui/app/components/send/send-content/send-row-wrapper/send-row-error-message/send-row-error-message.scss
  76. 0
      ui/app/components/send/send-content/send-row-wrapper/send-row-error-message/tests/send-row-error-message-component.test.js
  77. 0
      ui/app/components/send/send-content/send-row-wrapper/send-row-error-message/tests/send-row-error-message-container.test.js
  78. 0
      ui/app/components/send/send-content/send-row-wrapper/send-row-wrapper-README.md
  79. 0
      ui/app/components/send/send-content/send-row-wrapper/send-row-wrapper.component.js
  80. 0
      ui/app/components/send/send-content/send-row-wrapper/send-row-wrapper.scss
  81. 0
      ui/app/components/send/send-content/send-row-wrapper/tests/send-row-wrapper-component.test.js
  82. 0
      ui/app/components/send/send-content/send-to-row/index.js
  83. 0
      ui/app/components/send/send-content/send-to-row/send-to-row-README.md
  84. 0
      ui/app/components/send/send-content/send-to-row/send-to-row.component.js
  85. 0
      ui/app/components/send/send-content/send-to-row/send-to-row.container.js
  86. 0
      ui/app/components/send/send-content/send-to-row/send-to-row.selectors.js
  87. 0
      ui/app/components/send/send-content/send-to-row/send-to-row.utils.js
  88. 0
      ui/app/components/send/send-content/send-to-row/tests/send-to-row-component.test.js
  89. 0
      ui/app/components/send/send-content/send-to-row/tests/send-to-row-container.test.js
  90. 0
      ui/app/components/send/send-content/send-to-row/tests/send-to-row-selectors.test.js
  91. 0
      ui/app/components/send/send-content/send-to-row/tests/send-to-row-utils.test.js
  92. 0
      ui/app/components/send/send-content/tests/send-content-component.test.js
  93. 0
      ui/app/components/send/send-footer/README.md
  94. 0
      ui/app/components/send/send-footer/index.js
  95. 0
      ui/app/components/send/send-footer/send-footer.component.js
  96. 0
      ui/app/components/send/send-footer/send-footer.container.js
  97. 0
      ui/app/components/send/send-footer/send-footer.scss
  98. 0
      ui/app/components/send/send-footer/send-footer.selectors.js
  99. 0
      ui/app/components/send/send-footer/send-footer.utils.js
  100. 0
      ui/app/components/send/send-footer/tests/send-footer-component.test.js
  101. Some files were not shown because too many files have changed in this diff Show More

@ -6,7 +6,7 @@ const {
calcGasTotal,
calcTokenBalance,
estimateGas,
} = require('./components/send_/send.utils')
} = require('./components/send/send.utils')
const ethUtil = require('ethereumjs-util')
const { fetchLocale } = require('../i18n-helper')
const log = require('loglevel')

@ -11,7 +11,7 @@ const log = require('loglevel')
// init
const InitializeScreen = require('../../mascara/src/app/first-time').default
// accounts
const SendTransactionScreen = require('./components/send_/send.container')
const SendTransactionScreen = require('./components/send/send.container')
const ConfirmTransaction = require('./components/pages/confirm-transaction')
// slideout menu

@ -16,11 +16,11 @@ const {
MIN_GAS_PRICE_DEC,
MIN_GAS_LIMIT_DEC,
MIN_GAS_PRICE_GWEI,
} = require('../send_/send.constants')
} = require('../send/send.constants')
const {
isBalanceSufficient,
} = require('../send_/send.utils')
} = require('../send/send.utils')
const {
conversionUtil,
@ -45,7 +45,7 @@ const {
const {
getGasPrice,
getGasLimit,
} = require('../send_/send.selectors')
} = require('../send/send.selectors')
function mapStateToProps (state) {
const selectedToken = getSelectedToken(state)

@ -1,7 +1,7 @@
const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
const AccountListItem = require('../send_/account-list-item/account-list-item.component').default
const AccountListItem = require('../send/account-list-item/account-list-item.component').default
module.exports = AccountDropdownMini

@ -10,7 +10,7 @@ const networkMap = require('ethjs-ens/lib/network-map.json')
const ensRE = /.+\..+$/
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'
const connect = require('react-redux').connect
const ToAutoComplete = require('./send/to-autocomplete.component').default
const ToAutoComplete = require('./send/to-autocomplete').default
const log = require('loglevel')
const { isValidENSAddress } = require('../util')

@ -11,7 +11,7 @@ const { conversionUtil } = require('../../conversion-util')
const SenderToRecipient = require('../sender-to-recipient')
const NetworkDisplay = require('../network-display')
const { MIN_GAS_PRICE_HEX } = require('../send_/send.constants')
const { MIN_GAS_PRICE_HEX } = require('../send/send.constants')
class ConfirmDeployContract extends Component {
constructor (props) {

@ -19,14 +19,14 @@ const {
const {
calcGasTotal,
isBalanceSufficient,
} = require('../send_/send.utils')
const GasFeeDisplay = require('../send_/send-content/send-gas-row/gas-fee-display/gas-fee-display.component').default
} = require('../send/send.utils')
const GasFeeDisplay = require('../send/send-content/send-gas-row/gas-fee-display/').default
const SenderToRecipient = require('../sender-to-recipient')
const NetworkDisplay = require('../network-display')
const currencyFormatter = require('currency-formatter')
const currencies = require('currency-formatter/currencies')
const { MIN_GAS_PRICE_HEX } = require('../send_/send.constants')
const { MIN_GAS_PRICE_HEX } = require('../send/send.constants')
const { SEND_ROUTE, DEFAULT_ROUTE } = require('../../routes')
const {
ENVIRONMENT_TYPE_POPUP,

@ -11,7 +11,7 @@ abiDecoder.addABI(tokenAbi)
const actions = require('../../actions')
const clone = require('clone')
const Identicon = require('../identicon')
const GasFeeDisplay = require('../send_/send-content/send-gas-row/gas-fee-display/gas-fee-display.component.js').default
const GasFeeDisplay = require('../send/send-content/send-gas-row/gas-fee-display/').default
const NetworkDisplay = require('../network-display')
const ethUtil = require('ethereumjs-util')
const BN = ethUtil.BN
@ -23,7 +23,7 @@ const {
const {
calcGasTotal,
isBalanceSufficient,
} = require('../send_/send.utils')
} = require('../send/send.utils')
const {
calcTokenAmount,
} = require('../../token-util')
@ -31,7 +31,7 @@ const classnames = require('classnames')
const currencyFormatter = require('currency-formatter')
const currencies = require('currency-formatter/currencies')
const { MIN_GAS_PRICE_HEX } = require('../send_/send.constants')
const { MIN_GAS_PRICE_HEX } = require('../send/send.constants')
const {
getTokenExchangeRate,

@ -2,7 +2,7 @@ import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { checksumAddress } from '../../../util'
import Identicon from '../../identicon'
import CurrencyDisplay from '../../send/currency-display'
import CurrencyDisplay from '../currency-display'
export default class AccountListItem extends Component {

@ -4,7 +4,7 @@ import { shallow } from 'enzyme'
import sinon from 'sinon'
import proxyquire from 'proxyquire'
import Identicon from '../../../identicon'
import CurrencyDisplay from '../../../send/currency-display'
import CurrencyDisplay from '../../currency-display'
const utilsMethodStubs = {
checksumAddress: sinon.stub().returns('mockCheckSumAddress'),

@ -1,8 +1,8 @@
const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
const { conversionUtil, multiplyCurrencies } = require('../../conversion-util')
const { removeLeadingZeroes } = require('../send_/send.utils')
const { conversionUtil, multiplyCurrencies } = require('../../../conversion-util')
const { removeLeadingZeroes } = require('../send.utils')
const currencyFormatter = require('currency-formatter')
const currencies = require('currency-formatter/currencies')
const ethUtil = require('ethereumjs-util')

@ -0,0 +1 @@
export { default } from './currency-display.js'

@ -2,7 +2,7 @@ import React, { Component } from 'react'
import PropTypes from 'prop-types'
import SendRowWrapper from '../send-row-wrapper/'
import AmountMaxButton from './amount-max-button/'
import CurrencyDisplay from '../../../send/currency-display'
import CurrencyDisplay from '../../currency-display'
export default class SendAmountRow extends Component {

@ -6,7 +6,7 @@ import SendAmountRow from '../send-amount-row.component.js'
import SendRowWrapper from '../../send-row-wrapper/send-row-wrapper.component'
import AmountMaxButton from '../amount-max-button/amount-max-button.container'
import CurrencyDisplay from '../../../../send/currency-display'
import CurrencyDisplay from '../../../currency-display'
const propsMethodSpies = {
setMaxModeTo: sinon.spy(),

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save