summaryrefslogtreecommitdiffstats
path: root/webapp/components/integrations/components/edit_command/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/integrations/components/edit_command/index.js')
-rw-r--r--webapp/components/integrations/components/edit_command/index.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/webapp/components/integrations/components/edit_command/index.js b/webapp/components/integrations/components/edit_command/index.js
deleted file mode 100644
index 2a8257113..000000000
--- a/webapp/components/integrations/components/edit_command/index.js
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
-// See License.txt for license information.
-
-import {connect} from 'react-redux';
-import {bindActionCreators} from 'redux';
-import {getCustomTeamCommands, editCommand} from 'mattermost-redux/actions/integrations';
-import {getCommands} from 'mattermost-redux/selectors/entities/integrations';
-
-import EditCommand from './edit_command.jsx';
-
-function mapStateToProps(state, ownProps) {
- const commandId = ownProps.location.query.id;
-
- return {
- ...ownProps,
- commandId,
- commands: getCommands(state),
- editCommandRequest: state.requests.integrations.editCommand
- };
-}
-
-function mapDispatchToProps(dispatch) {
- return {
- actions: bindActionCreators({
- getCustomTeamCommands,
- editCommand
- }, dispatch)
- };
-}
-
-export default connect(mapStateToProps, mapDispatchToProps)(EditCommand);