import React from 'react' import { Tabs, Tab } from 'react-bootstrap' class AppLayout extends React.Component { constructor () { super() this.handleSubmit = this.handleSubmit.bind(this) } handleSubmit (event) { event.preventDefault() console.log(this.props.state.usersActions) const { loginRequest } = this.props.state.usersActions const data = { username: this.username.value, password: this.password.value } console.log(data) loginRequest(data) //const { fileUploadStart } = this.props.actions //const { files } = this.playerListFile // if (files.length === 0) { // alertAdd({ type: 'info', text: 'Datei entfernt' }) // return // } // if (files.length > 1) { // alertAdd({ type: 'warning', text: 'Mehrere Dateien gesendet. Nur die erste wird verarbeitet.' }) // } } render () { const { state } = this.props const { activeTab } = this.props.state.layout const { changeTab } = this.props.state.layoutActions const { PlayerList, MatchList, StartPage, UserList } = this.props.components const { token, tokenData } = state.users return (
{(tokenData) ? ( ) : (
{this.username = input}}/> {this.password = input}}/>
)}
) } } export default AppLayout