summaryrefslogtreecommitdiffstats
path: root/web/react/pages/admin_console.jsx
blob: ea9ae06f44086608dd15b53efca3672346fab007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.

var ErrorBar = require('../components/error_bar.jsx');
var SelectTeamModal = require('../components/admin_console/select_team_modal.jsx');
var AdminController = require('../components/admin_console/admin_controller.jsx');

export function setupAdminConsolePage(props) {
    ReactDOM.render(
        <AdminController
            tab={props.ActiveTab}
            teamId={props.TeamId}
        />,
        document.getElementById('admin_controller')
    );

    ReactDOM.render(
        <SelectTeamModal />,
        document.getElementById('select_team_modal')
    );

    ReactDOM.render(
        <ErrorBar/>,
        document.getElementById('error_bar')
    );
}

global.window.setup_admin_console_page = setupAdminConsolePage;