diff --git a/src/ts/@overflow/member/react/components/Modify.tsx b/src/ts/@overflow/member/react/components/Modify.tsx index 377f016..12e5c76 100644 --- a/src/ts/@overflow/member/react/components/Modify.tsx +++ b/src/ts/@overflow/member/react/components/Modify.tsx @@ -6,6 +6,8 @@ import { Button, Form, ButtonProps, + Grid, + Image, } from 'semantic-ui-react'; import MemberStatus from '../../api/model/MemberStatus'; @@ -63,57 +65,84 @@ export class Modify extends React.Component { console.log(data); } - public render(): JSX.Element { + // public render(): JSX.Element { + // let modifyElement = null; + + // if (this.props.member === null || this.props.member === undefined) { + // return null; + // } + // modifyElement =
+ // + // , data: InputOnChangeData) => { + // this.setState({ name: data.value }); + // } + // }/> + // , data: InputOnChangeData) => { + // this.setState({ pass: data.value }); + // } + // } /> + // , data: InputOnChangeData) => { + // this.setState({ passCon: data.value }); + // } + // } /> + // , data: InputOnChangeData) => { + // this.setState({ company: data.value }); + // } + // }/> + // {/* , data: InputOnChangeData) => { + // this.setState({ country: data.value }); + // } + // } /> */} + // , data: InputOnChangeData) => { + // this.setState({ phone: data.value }); + // } + // } /> + // + // + // + // + // ; + // // if (this.props.member !== undefined && this.props.member.id > 0) { + // // Todo Please check the member registration e-mail. + // // this.props.onRedirectHome(); + // // } else { + // return modifyElement; + // // } + + // } + + public render(): JSX.Element { let modifyElement = null; if (this.props.member === null || this.props.member === undefined) { return null; } - modifyElement =
- - , data: InputOnChangeData) => { - this.setState({ name: data.value }); - } - }/> - , data: InputOnChangeData) => { - this.setState({ pass: data.value }); - } - } /> - , data: InputOnChangeData) => { - this.setState({ passCon: data.value }); - } - } /> - , data: InputOnChangeData) => { - this.setState({ company: data.value }); - } - }/> - , data: InputOnChangeData) => { - this.setState({ country: data.value }); - } - } /> - , data: InputOnChangeData) => { - this.setState({ phone: data.value }); - } - } /> - - - - - ; - // if (this.props.member !== undefined && this.props.member.id > 0) { - // Todo Please check the member registration e-mail. - // this.props.onRedirectHome(); - // } else { - return modifyElement; - // } + modifyElement = +
+ + + + + + + + + + + + + + +
; + return modifyElement; } private modifyClick = (event: React.SyntheticEvent, data: ButtonProps):void => { diff --git a/src/ts/@overflow/member/react/components/SignIn.tsx b/src/ts/@overflow/member/react/components/SignIn.tsx index 3c16b67..d737580 100644 --- a/src/ts/@overflow/member/react/components/SignIn.tsx +++ b/src/ts/@overflow/member/react/components/SignIn.tsx @@ -68,21 +68,23 @@ export class SignIn extends React.Component { (event: React.SyntheticEvent, data: InputOnChangeData) => { this.setState({ pass: data.value }); }} /> -
+ {/*
-
+
*/} + + + - Change your password + Reset your password - Enter email address - , data: InputOnChangeData) => { this.setState({ email: data.value }); }} /> @@ -90,21 +92,21 @@ export class SignIn extends React.Component { - - + + + - Send Complete + Reset Password -
비밀번호 변경이 신청 되었습니다.
-

수신하신 메일의 주소에서 비밀번호 변경을 완료 하시기 바랍니다.

+

Your password reset email has been sent if this email/username exists.

- +
; diff --git a/src/ts/@overflow/member/react/components/SignUp.tsx b/src/ts/@overflow/member/react/components/SignUp.tsx index 504574e..e83d635 100644 --- a/src/ts/@overflow/member/react/components/SignUp.tsx +++ b/src/ts/@overflow/member/react/components/SignUp.tsx @@ -3,6 +3,7 @@ import Member from '../../api/model/Member'; import { InputOnChangeData, + CheckboxProps, Button, Form, ButtonProps, @@ -28,12 +29,13 @@ export interface State { company: string; phone: string; country: string; + checked: boolean; } -const options = [ - { key: 'southkorea', value: '82', text: 'South Korea(82)' }, - { key: 'unitedstates', value: '1', text: 'United States(1)' }, -]; +// const options = [ +// { key: 'southkorea', value: '82', text: 'South Korea(82)' }, +// { key: 'unitedstates', value: '1', text: 'United States(1)' }, +// ]; export class SignUp extends React.Component { @@ -48,6 +50,7 @@ export class SignUp extends React.Component { company: null, phone: null, country: null, + checked: false, }; } @@ -61,6 +64,7 @@ export class SignUp extends React.Component { let signupElement =
, data: InputOnChangeData) => { this.setState({ email: data.value }); }} /> @@ -69,12 +73,14 @@ export class SignUp extends React.Component { this.setState({ name: data.value }); } }/> - , data: InputOnChangeData) => { this.setState({ pass: data.value }); } } /> , data: InputOnChangeData) => { this.setState({ passCon: data.value }); } @@ -84,19 +90,33 @@ export class SignUp extends React.Component { this.setState({ company: data.value }); } }/> - , data: InputOnChangeData) => { this.setState({ country: data.value }); } - } /> + } /> */} , data: InputOnChangeData) => { this.setState({ phone: data.value }); } } /> + I accept Term and + privacy} onClick={ + (event: React.MouseEvent, data: CheckboxProps) => { + if (this.state.checked) { + this.setState({ checked: false }); + } else { + this.setState({ checked: true }); + } + } + } /> + - - + + + + + ; if (this.props.member !== undefined && this.props.member.id > 0) { @@ -108,6 +128,10 @@ export class SignUp extends React.Component { } + private signinClick = (event: React.SyntheticEvent, data: ButtonProps):void => { + return; + } + private signUpClick = (event: React.SyntheticEvent, data: ButtonProps):void => { let member:Member = {};