signup parameter pw added

This commit is contained in:
geek 2017-08-24 15:35:52 +09:00
parent c790051671
commit 9d03b91263
2 changed files with 4 additions and 4 deletions

View File

@ -21,8 +21,8 @@ export function mapStateToProps(state: any): SignUpStateProps {
export function mapDispatchToProps(dispatch: Dispatch<any>): SignUpDispatchProps {
return {
onSignUp: (member: Member, pw: string) => {
dispatch(asyncRequestActions.request('MemberService', 'signup', signupActions.REQUEST, JSON.stringify(member), pw ));
onSignUp: (member: Member) => {
dispatch(asyncRequestActions.request('MemberService', 'signup', signupActions.REQUEST, JSON.stringify(member)));
// dispatch(signupActions.request(member));
},
onRedirectHome: () => {

View File

@ -14,7 +14,7 @@ export interface StateProps {
}
export interface DispatchProps {
onSignUp?(member: Member, pw: string): void;
onSignUp?(member: Member): void;
onRedirectHome():void;
}
@ -123,7 +123,7 @@ export class SignUp extends React.Component<Props, State> {
member.phone = this.state.phone;
// member.status = MemberStatus.NOAUTH;
this.props.onSignUp(member, member.pw);
this.props.onSignUp(member);
}
}