diff --git a/src/components/ManagerPage/AppsList.js b/src/components/ManagerPage/AppsList.js index 8d34ab3a..d2935f46 100644 --- a/src/components/ManagerPage/AppsList.js +++ b/src/components/ManagerPage/AppsList.js @@ -1,7 +1,7 @@ // @flow /* eslint-disable react/jsx-no-literals */ // FIXME -import React, { PureComponent, Fragment } from 'react' +import React, { PureComponent } from 'react' import styled from 'styled-components' import { translate } from 'react-i18next' import { connect } from 'react-redux' @@ -15,7 +15,6 @@ import { developerModeSelector } from 'reducers/settings' import installApp from 'commands/installApp' import uninstallApp from 'commands/uninstallApp' import Box from 'components/base/Box' -import Space from 'components/base/Space' import Modal from 'components/base/Modal' import Tooltip from 'components/base/Tooltip' import Text from 'components/base/Text' diff --git a/src/components/SettingsPage/PasswordForm.js b/src/components/SettingsPage/PasswordForm.js index d0587fec..ff6a4a03 100644 --- a/src/components/SettingsPage/PasswordForm.js +++ b/src/components/SettingsPage/PasswordForm.js @@ -70,6 +70,7 @@ class PasswordForm extends PureComponent { { + onClose = () => this.props.closeModal(MODAL_DISCLAIMER) render() { const { t } = this.props return ( ( @@ -43,11 +45,7 @@ class DisclaimerModal extends PureComponent { )} renderFooter={() => ( - diff --git a/src/components/modals/ShareAnalytics.js b/src/components/modals/ShareAnalytics.js index c5f315fc..425e0711 100644 --- a/src/components/modals/ShareAnalytics.js +++ b/src/components/modals/ShareAnalytics.js @@ -24,6 +24,7 @@ const mapDispatchToProps = { } class ShareAnalytics extends PureComponent { + onClose = () => this.props.closeModal(MODAL_SHARE_ANALYTICS) render() { const { t } = this.props const items = [ @@ -67,6 +68,7 @@ class ShareAnalytics extends PureComponent { return ( ( @@ -78,11 +80,7 @@ class ShareAnalytics extends PureComponent { )} renderFooter={() => ( - diff --git a/src/components/modals/TechnicalData.js b/src/components/modals/TechnicalData.js index 93f2c3ef..b975f6da 100644 --- a/src/components/modals/TechnicalData.js +++ b/src/components/modals/TechnicalData.js @@ -23,6 +23,8 @@ const mapDispatchToProps = { } class TechnicalData extends PureComponent { + onClose = () => this.props.closeModal(MODAL_TECHNICAL_DATA) + render() { const { t } = this.props @@ -44,6 +46,7 @@ class TechnicalData extends PureComponent { return ( ( @@ -55,11 +58,7 @@ class TechnicalData extends PureComponent { )} renderFooter={() => ( -