From d8bd57901e33a7057e26e782e295099ffcc0da89 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Wed, 6 Sep 2017 23:04:13 -0700
Subject: Removing webapp

---
 .../manage_teams_modal/remove_from_team_button.jsx | 54 ----------------------
 1 file changed, 54 deletions(-)
 delete mode 100644 webapp/components/admin_console/manage_teams_modal/remove_from_team_button.jsx

(limited to 'webapp/components/admin_console/manage_teams_modal/remove_from_team_button.jsx')

diff --git a/webapp/components/admin_console/manage_teams_modal/remove_from_team_button.jsx b/webapp/components/admin_console/manage_teams_modal/remove_from_team_button.jsx
deleted file mode 100644
index 69579d46f..000000000
--- a/webapp/components/admin_console/manage_teams_modal/remove_from_team_button.jsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import PropTypes from 'prop-types';
-
-// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
-// See License.txt for license information.
-
-import React from 'react';
-import {FormattedMessage} from 'react-intl';
-
-import {removeUserFromTeam} from 'actions/team_actions.jsx';
-
-export default class RemoveFromTeamButton extends React.PureComponent {
-    static propTypes = {
-        onError: PropTypes.func.isRequired,
-        onMemberRemove: PropTypes.func.isRequired,
-        team: PropTypes.object.isRequired,
-        user: PropTypes.object.isRequired
-    };
-
-    constructor(props) {
-        super(props);
-
-        this.handleClick = this.handleClick.bind(this);
-        this.handleMemberRemove = this.handleMemberRemove.bind(this);
-    }
-
-    handleClick(e) {
-        e.preventDefault();
-
-        removeUserFromTeam(
-            this.props.team.id,
-            this.props.user.id,
-            this.handleMemberRemove,
-            this.props.onError
-        );
-    }
-
-    handleMemberRemove() {
-        this.props.onMemberRemove(this.props.team.id);
-    }
-
-    render() {
-        return (
-            <button
-                className='btn btn-danger'
-                onClick={this.handleClick}
-            >
-                <FormattedMessage
-                    id='team_members_dropdown.leave_team'
-                    defaultMessage='Remove from Team'
-                />
-            </button>
-        );
-    }
-}
-- 
cgit v1.2.3-1-g7c22

