Fix code style issues

This commit is contained in:
JP1998 2018-12-12 20:59:37 +01:00
parent cbaa1b8270
commit e66638dcc0
3 changed files with 6 additions and 8 deletions

View File

@ -60,7 +60,7 @@ const defaultstate_tournamentinfo = {
isPublic : '', isPublic : '',
stages: [], stages: [],
teams : [] teams : []
} };
export function postRequest(state, url, data) { export function postRequest(state, url, data) {
return axios.post(api_url + url, data, { return axios.post(api_url + url, data, {
@ -262,7 +262,7 @@ const reducer_tournamentinfo = (state = defaultstate_tournamentinfo, action) =>
}); });
storeOptionalToken(resp); storeOptionalToken(resp);
action.parameters.successCallback(); action.parameters.successCallback();
}).catch((error) => { }).catch(() => {
action.parameters.errorCallback(); action.parameters.errorCallback();
}); });
return Object.assign({}, state, {}); return Object.assign({}, state, {});
@ -304,7 +304,7 @@ const reducer_tournamentinfo = (state = defaultstate_tournamentinfo, action) =>
return Object.assign({}, state, {}); return Object.assign({}, state, {});
default: return state; default: return state;
} }
} };
const reducers = { const reducers = {
userinfo: reducer_userinfo, userinfo: reducer_userinfo,

View File

@ -1,4 +1,5 @@
import { ErrorPageComponent } from '../js/components/ErrorComponents.js'; import { ErrorPageComponent } from '../js/components/ErrorComponents.js';
import React from 'react';
import { import {
verifyCredentials verifyCredentials

View File

@ -13,7 +13,6 @@ import {
Button, Button,
Card, Card,
CardBody, CardBody,
CardTitle,
Table Table
} from 'reactstrap'; } from 'reactstrap';
@ -87,8 +86,6 @@ export default connect(
class EditTournamentContent extends React.Component { class EditTournamentContent extends React.Component {
render() { render() {
const { code } = this.props;
return ( return (
<div className='mb-5'> <div className='mb-5'>
<ReturnToTournamentButton/> <ReturnToTournamentButton/>
@ -178,7 +175,7 @@ class EditTournamentForm extends React.Component {
}); });
} }
handleClick(input) { handleClick() {
// TODO: Apply changes to the tournament properties // TODO: Apply changes to the tournament properties
} }
@ -272,7 +269,7 @@ class EditTeamNamesForm extends React.Component {
}); });
} }
handleClick(index, input) { handleClick(index) {
updateTeamName(this.state.teams[index], () => { updateTeamName(this.state.teams[index], () => {
notify.show('Team Name wurde erfolgreich geändert.', 'success', 5000); notify.show('Team Name wurde erfolgreich geändert.', 'success', 5000);
}, () => { }, () => {