Forgotpassword file delete
This commit is contained in:
parent
d3aa30e9f3
commit
b06359c943
|
@ -9,7 +9,6 @@ import {
|
||||||
|
|
||||||
import SignIn from '../member/SignIn';
|
import SignIn from '../member/SignIn';
|
||||||
import SignUp from '../member/SignUp';
|
import SignUp from '../member/SignUp';
|
||||||
import ForgotPassword from '../member/ForgotPassword';
|
|
||||||
import PWConfirm from '../member/PWConfirm';
|
import PWConfirm from '../member/PWConfirm';
|
||||||
import Modify from '../member/Modify';
|
import Modify from '../member/Modify';
|
||||||
|
|
||||||
|
@ -38,7 +37,6 @@ class AccountLayout extends React.Component<Props, State> {
|
||||||
<Route path={`${this.props.match.url}/signin`} component={SignIn}/>
|
<Route path={`${this.props.match.url}/signin`} component={SignIn}/>
|
||||||
<Route path={`${this.props.match.url}/signup`} component={SignUp}/>
|
<Route path={`${this.props.match.url}/signup`} component={SignUp}/>
|
||||||
<Route path={`${this.props.match.url}/pw_confirm`} component={PWConfirm}/>
|
<Route path={`${this.props.match.url}/pw_confirm`} component={PWConfirm}/>
|
||||||
<Route path={`${this.props.match.url}/forgot_password`} component={ForgotPassword}/>
|
|
||||||
<Route path={`${this.props.match.url}/modify`} component={Modify}/>
|
<Route path={`${this.props.match.url}/modify`} component={Modify}/>
|
||||||
</Switch>
|
</Switch>
|
||||||
</Segment>
|
</Segment>
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
import { connect, Dispatch } from 'react-redux';
|
|
||||||
import {
|
|
||||||
PWChange,
|
|
||||||
StateProps as PWCangeStateProps,
|
|
||||||
DispatchProps as PWCangeDispatchProps,
|
|
||||||
} from './components/ForgotPassword';
|
|
||||||
|
|
||||||
|
|
||||||
import * as pwChangeActions from '../redux/action/pw_change';
|
|
||||||
import * as asyncRequestActions from '@overflow/commons/redux/action/asyncRequest';
|
|
||||||
|
|
||||||
export function mapStateToProps(state: any): PWCangeStateProps {
|
|
||||||
return {
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function mapDispatchToProps(dispatch: Dispatch<any>): PWCangeDispatchProps {
|
|
||||||
return {
|
|
||||||
onForgotPassword: (email: string) => {
|
|
||||||
dispatch(asyncRequestActions.request('MemberService', 'forgotPassword', pwChangeActions.REQUEST, email));
|
|
||||||
// dispatch(pwChangeActions.request(pass));
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export default connect(mapStateToProps, mapDispatchToProps)(PWChange);
|
|
|
@ -1,52 +0,0 @@
|
||||||
import *as React from 'react';
|
|
||||||
import {
|
|
||||||
Input,
|
|
||||||
InputOnChangeData,
|
|
||||||
Button,
|
|
||||||
Form,
|
|
||||||
ButtonProps,
|
|
||||||
} from 'semantic-ui-react';
|
|
||||||
|
|
||||||
export interface StateProps {
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DispatchProps {
|
|
||||||
onForgotPassword?(pass:string):void;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type Props = StateProps & DispatchProps;
|
|
||||||
|
|
||||||
export interface State {
|
|
||||||
email: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export class PWChange extends React.Component<Props, State> {
|
|
||||||
constructor(props: Props, context: State) {
|
|
||||||
super(props, context);
|
|
||||||
|
|
||||||
this.state = {
|
|
||||||
email:null,
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public render(): JSX.Element {
|
|
||||||
return (
|
|
||||||
<Form>
|
|
||||||
<Form.Input placeholder='Email' onChange={
|
|
||||||
(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
|
||||||
this.setState({ email: data.value });
|
|
||||||
}} />
|
|
||||||
<Form.Group>
|
|
||||||
<Button primary fluid style={{margin:'7'}} onClick={this.forgotPwClick}> Submit </Button>
|
|
||||||
<Button fluid style={{margin:'7'}}> Cancel </Button>
|
|
||||||
</Form.Group>
|
|
||||||
</Form>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
private forgotPwClick(event: React.SyntheticEvent<HTMLButtonElement>, data: ButtonProps):void {
|
|
||||||
this.props.onForgotPassword(this.state.pass);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -110,8 +110,9 @@ export class SignIn extends React.Component<Props, State> {
|
||||||
this.setState({
|
this.setState({
|
||||||
forgotPopup: false,
|
forgotPopup: false,
|
||||||
sendComPopup: true,
|
sendComPopup: true,
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Todo Ajax
|
||||||
}
|
}
|
||||||
|
|
||||||
private signInClick(event: React.SyntheticEvent<HTMLButtonElement>, data: ButtonProps):void {
|
private signInClick(event: React.SyntheticEvent<HTMLButtonElement>, data: ButtonProps):void {
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
// Action Type
|
|
||||||
export type REQUEST = '@overflow/member/pw_change/REQUEST';
|
|
||||||
export type REQUEST_SUCCESS = '@overflow/member/pw_change/REQUEST/SUCCESS';
|
|
||||||
export type REQUEST_FAILURE = '@overflow/member/pw_change/REQUEST/FAILURE';
|
|
||||||
|
|
||||||
export const REQUEST: REQUEST = '@overflow/member/pw_change/REQUEST';
|
|
||||||
export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/member/pw_change/REQUEST/SUCCESS';
|
|
||||||
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/member/pw_change/REQUEST/FAILURE';
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
import Member from '../../api/model/Member';
|
|
||||||
interface PWChangePayload {
|
|
||||||
pass: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export default PWChangePayload;
|
|
Loading…
Reference in New Issue
Block a user