This commit is contained in:
snoop 2017-07-11 17:05:58 +09:00
parent a8206a945a
commit 6f56ebe0b3
2 changed files with 27 additions and 6 deletions

View File

@ -1,6 +1,6 @@
import *as React from 'react' import *as React from 'react'
import { import {
Icon, Label, Input, Icon, Label, Input, InputOnChangeData,
Select, Button Select, Button
} from 'semantic-ui-react' } from 'semantic-ui-react'
@ -18,9 +18,17 @@ export class PWChange extends React.Component<any, any> {
constructor(props: any, context: any) { constructor(props: any, context: any) {
super(props, context); super(props, context);
this.state = {
pass:'',
passCon:'',
}
} }
onSubmit = () => {
console.log(this.state);
}
render() { render() {
@ -28,15 +36,20 @@ export class PWChange extends React.Component<any, any> {
return ( return (
<div> <div>
<Label> Password </Label>
<Input placeholder='Password' type='password' /> <Input label='Password' placeholder='Password' type='password' onChange={
(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
this.setState({ pass: data.value });
}} />
<br /> <br />
<Label> Password Confirm </Label> <Input label='Password Confirm' placeholder='Password Confirm' type='password' onChange={
<Input placeholder='Password Confirm' type='password' /> (event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
this.setState({ passCon: data.value });
}} />
<br /> <br />
<Button> Submit </Button> <Button onClick={this.onSubmit}> Submit </Button>
<Button> Cancel </Button> <Button> Cancel </Button>
</div> </div>
); );

View File

@ -11,6 +11,14 @@ const options = [{ key: 'southkorea', value: '82', text: 'South Korea(82)' },
{ key: 'unitedstates', value: '1', text: 'United States(1)' }] { key: 'unitedstates', value: '1', text: 'United States(1)' }]
export interface Props {
}
export interface States {
}
export class SignIn extends React.Component<any, any> { export class SignIn extends React.Component<any, any> {
constructor(props: any, context: any) { constructor(props: any, context: any) {
super(props, context); super(props, context);