Skip to content

Commit

Permalink
fix radio checkboxes to match enum values
Browse files Browse the repository at this point in the history
  • Loading branch information
englercj committed Sep 18, 2018
1 parent 697e082 commit 4e459d7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions client/src/components/EditorSettingsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ export class EditorSettingsDialog extends Component<IProps, IState>
<fieldset>
<h4><label>PixiJS Version</label></h4>
<RadioGroup name="settings-version" selectedValue={state.versionType} onChange={this._onVersionChange}>
<Radio value="release" id="settings-version-release" />
<Radio value={PixiVersionType.Release} id="settings-version-release" />
<label for="settings-version-release">Latest Release</label>

<Radio value="tag" id="settings-version-tag" />
<Radio value={PixiVersionType.Tag} id="settings-version-tag" />
<label for="settings-version-tag">Specific Version</label>

<Radio value="custom" id="settings-version-custom" />
<Radio value={PixiVersionType.Custom} id="settings-version-custom" />
<label for="settings-version-custom">Custom Url</label>
</RadioGroup>
<br/>
Expand Down Expand Up @@ -161,7 +161,6 @@ export class EditorSettingsDialog extends Component<IProps, IState>
className="fullwidth"
value={state.data.pixiVersion}
onChange={linkState(this, 'data.pixiVersion')}>
<option hidden disabled value="release">-- Select a version --</option>
{state.versionOptions.map(this._renderTagOption)}
</select>
);
Expand Down

0 comments on commit 4e459d7

Please sign in to comment.