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

var SignupTeam = require('../components/signup_team.jsx');

function setupSignupTeamPage(props) {
    var teams = [];

    for (var prop in props) {
        if (props.hasOwnProperty(prop)) {
            if (prop !== 'Title') {
                teams.push({name: prop, display_name: props[prop]});
            }
        }
    }

    ReactDOM.render(
        <SignupTeam teams={teams} />,
        document.getElementById('signup-team')
    );
}

global.window.setup_signup_team_page = setupSignupTeamPage;