diff --git a/app/components/ModalRoot/ModalRoot.js b/app/components/ModalRoot/ModalRoot.js
deleted file mode 100644
index 639d775c..00000000
--- a/app/components/ModalRoot/ModalRoot.js
+++ /dev/null
@@ -1,44 +0,0 @@
-import React from 'react'
-import PropTypes from 'prop-types'
-import { MdClose } from 'react-icons/lib/md'
-import styles from './ModalRoot.scss'
-
-const MODAL_COMPONENTS = {
- /* other modals */
-}
-
-const ModalRoot = ({
- modalType, modalProps, hideModal, currentTicker, currency, isTestnet
-}) => {
- if (!modalType) { return null }
-
- const SpecificModal = MODAL_COMPONENTS[modalType]
- return (
-
-
@@ -110,13 +97,10 @@ class App extends Component {
}
App.propTypes = {
- modal: PropTypes.object.isRequired,
- ticker: PropTypes.object.isRequired,
form: PropTypes.object.isRequired,
formProps: PropTypes.object.isRequired,
closeForm: PropTypes.func.isRequired,
error: PropTypes.object.isRequired,
- info: PropTypes.object.isRequired,
currentTicker: PropTypes.object,
contactModalProps: PropTypes.object,
contactsFormProps: PropTypes.object,
@@ -127,7 +111,6 @@ App.propTypes = {
newAddress: PropTypes.func.isRequired,
fetchInfo: PropTypes.func.isRequired,
- hideModal: PropTypes.func.isRequired,
fetchTicker: PropTypes.func.isRequired,
clearError: PropTypes.func.isRequired,
fetchChannels: PropTypes.func.isRequired,
diff --git a/app/routes/app/containers/AppContainer.js b/app/routes/app/containers/AppContainer.js
index 353ce18a..89cde976 100644
--- a/app/routes/app/containers/AppContainer.js
+++ b/app/routes/app/containers/AppContainer.js
@@ -9,8 +9,6 @@ import { newAddress, closeWalletModal } from 'reducers/address'
import { fetchInfo } from 'reducers/info'
-import { showModal, hideModal } from 'reducers/modal'
-
import { setFormType } from 'reducers/form'
import { setPayAmount, setPayInput, setCurrencyFilters, updatePayErrors, payFormSelectors } from 'reducers/payform'
@@ -81,9 +79,6 @@ const mapDispatchToProps = {
fetchInfo,
- showModal,
- hideModal,
-
setFormType,
setPayAmount,
@@ -156,7 +151,6 @@ const mapStateToProps = state => ({
requestform: state.requestform,
invoice: state.invoice,
- modal: state.modal,
error: state.error,
diff --git a/test/components/ModalRoot.spec.js b/test/components/ModalRoot.spec.js
deleted file mode 100644
index b0946bdf..00000000
--- a/test/components/ModalRoot.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-import React from 'react'
-import { shallow } from 'enzyme'
-import ModalRoot from '../../app/components/ModalRoot'
-
-const defaultProps = {
- hideModal: () => {},
- modalProps: {},
- currentTicker: {},
- currency: '',
- isTestnet: false
-}
-
-describe('no modal', () => {
- const props = { ...defaultProps }
- const el = shallow(
)
- it('should return null', () => {
- expect(el.html()).toBeNull()
- })
-})