Remove deprecated CustomInput

This commit is contained in:
Thor77 2022-06-10 22:34:37 +02:00
parent 2130b94970
commit 3cc29eafc2
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
1 changed files with 17 additions and 9 deletions

View File

@ -9,7 +9,6 @@ import {
Col,
Collapse,
Container,
CustomInput,
Form,
FormGroup,
Input,
@ -101,15 +100,24 @@ class CreateTournamentForm extends React.Component {
<Input type="text" name="description" size="255" value={this.state.description}
onChange={this.handleDescriptionInput}/>
</FormGroup>
<FormGroup>
<CustomInput type="checkbox" id="public"
label="Turnier öffentlich anzeigen (schreibgeschützt)" checked={this.state.public}
<FormGroup tag="fieldset">
<FormGroup check>
<Label for="public" check>Turnier öffentlich anzeigen (schreibgeschützt)</Label>
<Input type="checkbox" id="public"
checked={this.state.public}
onChange={this.handlePublicInput}/>
<CustomInput type="checkbox" id="mix-teams" label="Teams mischen"/>
<CustomInput type="checkbox" id="group-phase" label="Gruppenphase"
</FormGroup>
<FormGroup check>
<Label for="mix-teams" check>Teams mischen</Label>
<Input type="checkbox" id="mix-teams"/>
</FormGroup>
<FormGroup check>
<Label for="group-phase" check>Gruppenphase</Label>
<Input type="checkbox" id="group-phase"
checked={this.state.groupPhaseEnabled}
onChange={this.handleGroupPhaseEnabledInput}/>
</FormGroup>
</FormGroup>
<Collapse isOpen={this.state.groupPhaseEnabled}>
<FormGroup>
<Label for="teams-per-group">Anzahl Teams pro Gruppe</Label>