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

View File

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

View File

@ -13,7 +13,6 @@ import {
Button,
Card,
CardBody,
CardTitle,
Table
} from 'reactstrap';
@ -87,8 +86,6 @@ export default connect(
class EditTournamentContent extends React.Component {
render() {
const { code } = this.props;
return (
<div className='mb-5'>
<ReturnToTournamentButton/>
@ -178,7 +175,7 @@ class EditTournamentForm extends React.Component {
});
}
handleClick(input) {
handleClick() {
// 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], () => {
notify.show('Team Name wurde erfolgreich geändert.', 'success', 5000);
}, () => {