Skip to content
This repository has been archived by the owner on Dec 28, 2018. It is now read-only.

Commit

Permalink
fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsuharuohzeki committed Sep 5, 2016
1 parent ad73a1b commit ccdeaf7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/client/settings/view/ConnectSettingWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,53 +201,53 @@ export class ConnectSettingWindow extends React.Component<Props, void> {
);
}

onChangeSetNetworkName(event: React.FormEvent): void {
onChangeSetNetworkName(event: React.FormEvent<void>): void {
const value = (event.target as HTMLInputElement).value;
this.props.viewmodel.networkName().setValue(value);
}

onChangeSetServerURL(event: React.FormEvent): void {
onChangeSetServerURL(event: React.FormEvent<void>): void {
const value = (event.target as HTMLInputElement).value;
this.props.viewmodel.serverUrl().setValue(value);
}

onChangeSetServerPort(event: React.FormEvent): void {
onChangeSetServerPort(event: React.FormEvent<void>): void {
const value = (event.target as HTMLInputElement).value;
const port = parseInt(value, 10);
this.props.viewmodel.serverPort().setValue(port);
}

onChangeSetServerPass(event: React.FormEvent): void {
onChangeSetServerPass(event: React.FormEvent<void>): void {
const value = (event.target as HTMLInputElement).value;
this.props.viewmodel.serverPass().setValue(value);
}

onChangeUseTLS(event: React.FormEvent): void {
onChangeUseTLS(event: React.FormEvent<void>): void {
const isChecked = (event.target as HTMLInputElement).checked;
this.props.viewmodel.useTLS().setValue(isChecked);
}

onChangeSetNickName(event: React.FormEvent): void {
onChangeSetNickName(event: React.FormEvent<void>): void {
const value = (event.target as HTMLInputElement).value;
this.props.viewmodel.nickname().setValue(value);
}

onChangeSetUserName(event: React.FormEvent): void {
onChangeSetUserName(event: React.FormEvent<void>): void {
const value = (event.target as HTMLInputElement).value;
this.props.viewmodel.username().setValue(value);
}

onChangeSetRealName(event: React.FormEvent): void {
onChangeSetRealName(event: React.FormEvent<void>): void {
const value = (event.target as HTMLInputElement).value;
this.props.viewmodel.realname().setValue(value);
}

onChangeSetChannel(event: React.FormEvent): void {
onChangeSetChannel(event: React.FormEvent<void>): void {
const value = (event.target as HTMLInputElement).value;
this.props.viewmodel.channel().setValue(value);
}

onSubmit(event: React.FormEvent): void {
onSubmit(event: React.FormEvent<void>): void {
event.preventDefault();

const param = this.props.data;
Expand Down

0 comments on commit ccdeaf7

Please sign in to comment.