signup parameter pw added
This commit is contained in:
parent
c790051671
commit
9d03b91263
|
@ -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: () => {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user