From 54f6710b8f03b452aae98d45da9c01468b671aae Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Mon, 3 Jun 2019 16:18:49 +0300 Subject: [PATCH] * client: remove unused addErrorToast method --- client/src/containers/Dhcp.js | 2 -- client/src/containers/Dns.js | 3 +-- client/src/containers/Encryption.js | 2 -- client/src/containers/Settings.js | 3 +-- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/client/src/containers/Dhcp.js b/client/src/containers/Dhcp.js index 5f40f851..6f2b8f47 100644 --- a/client/src/containers/Dhcp.js +++ b/client/src/containers/Dhcp.js @@ -1,6 +1,5 @@ import { connect } from 'react-redux'; import { - addErrorToast, toggleDhcp, getDhcpStatus, getDhcpInterfaces, @@ -21,7 +20,6 @@ const mapStateToProps = (state) => { }; const mapDispatchToProps = { - addErrorToast, toggleDhcp, getDhcpStatus, getDhcpInterfaces, diff --git a/client/src/containers/Dns.js b/client/src/containers/Dns.js index 491f21ee..aa3c78ad 100644 --- a/client/src/containers/Dns.js +++ b/client/src/containers/Dns.js @@ -1,5 +1,5 @@ import { connect } from 'react-redux'; -import { handleUpstreamChange, setUpstream, testUpstream, addErrorToast } from '../actions'; +import { handleUpstreamChange, setUpstream, testUpstream } from '../actions'; import { getAccessList, setAccessList } from '../actions/access'; import Dns from '../components/Settings/Dns'; @@ -17,7 +17,6 @@ const mapDispatchToProps = { handleUpstreamChange, setUpstream, testUpstream, - addErrorToast, getAccessList, setAccessList, }; diff --git a/client/src/containers/Encryption.js b/client/src/containers/Encryption.js index 723837a2..e27dc44c 100644 --- a/client/src/containers/Encryption.js +++ b/client/src/containers/Encryption.js @@ -1,5 +1,4 @@ import { connect } from 'react-redux'; -import { addErrorToast } from '../actions'; import { getTlsStatus, setTlsConfig, validateTlsConfig } from '../actions/encryption'; import Encryption from '../components/Settings/Encryption'; @@ -12,7 +11,6 @@ const mapStateToProps = (state) => { }; const mapDispatchToProps = { - addErrorToast, getTlsStatus, setTlsConfig, validateTlsConfig, diff --git a/client/src/containers/Settings.js b/client/src/containers/Settings.js index 827822cf..e50290f1 100644 --- a/client/src/containers/Settings.js +++ b/client/src/containers/Settings.js @@ -1,5 +1,5 @@ import { connect } from 'react-redux'; -import { initSettings, toggleSetting, addErrorToast } from '../actions'; +import { initSettings, toggleSetting } from '../actions'; import Settings from '../components/Settings'; const mapStateToProps = (state) => { @@ -13,7 +13,6 @@ const mapStateToProps = (state) => { const mapDispatchToProps = { initSettings, toggleSetting, - addErrorToast, }; export default connect(