Browse Source

refactor: move AmountInput component to UI dir

renovate/lint-staged-8.x
Tom Kirkpatrick 6 years ago
parent
commit
b3efb8a0f7
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 0
      app/components/AmountInput/AmountInput.scss
  2. 3
      app/components/AmountInput/index.js
  3. 3
      app/components/Contacts/SubmitChannelForm/SubmitChannelForm.js
  4. 0
      app/components/UI/AmountInput.js
  5. 1
      app/components/UI/index.js
  6. 2
      test/unit/components/UI/AmountInput.spec.js

0
app/components/AmountInput/AmountInput.scss

3
app/components/AmountInput/index.js

@ -1,3 +0,0 @@
import AmountInput from './AmountInput'
export default AmountInput

3
app/components/Contacts/SubmitChannelForm/SubmitChannelForm.js

@ -1,8 +1,7 @@
import React from 'react'
import PropTypes from 'prop-types'
import FaExclamationCircle from 'react-icons/lib/fa/exclamation-circle'
import AmountInput from 'components/AmountInput'
import { Button, Dropdown } from 'components/UI'
import { AmountInput, Button, Dropdown } from 'components/UI'
import { FormattedNumber, FormattedMessage } from 'react-intl'
import messages from './messages'
import styles from './SubmitChannelForm.scss'

0
app/components/AmountInput/AmountInput.js → app/components/UI/AmountInput.js

1
app/components/UI/index.js

@ -1,3 +1,4 @@
export AmountInput from './AmountInput'
export BackgroundDark from './BackgroundDark'
export BackgroundLight from './BackgroundLight'
export BackgroundLightest from './BackgroundLightest'

2
test/unit/components/AmountInput.spec.js → test/unit/components/UI/AmountInput.spec.js

@ -2,7 +2,7 @@ import React from 'react'
import { configure, mount } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import AmountInput from 'components/AmountInput'
import { AmountInput } from 'components/UI'
configure({ adapter: new Adapter() })
Loading…
Cancel
Save