diff --git a/src/ts/@overflow/app/views/layout/AccountLayout.tsx b/src/ts/@overflow/app/views/layout/AccountLayout.tsx index 94d8e4c..4106a9c 100644 --- a/src/ts/@overflow/app/views/layout/AccountLayout.tsx +++ b/src/ts/@overflow/app/views/layout/AccountLayout.tsx @@ -9,7 +9,6 @@ import { import SignIn from '../member/SignIn'; import SignUp from '../member/SignUp'; -import ForgotPassword from '../member/ForgotPassword'; import PWConfirm from '../member/PWConfirm'; import Modify from '../member/Modify'; @@ -38,7 +37,6 @@ class AccountLayout extends React.Component { - diff --git a/src/ts/@overflow/member/react/ForgotPassword.tsx b/src/ts/@overflow/member/react/ForgotPassword.tsx deleted file mode 100644 index b9bf447..0000000 --- a/src/ts/@overflow/member/react/ForgotPassword.tsx +++ /dev/null @@ -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): PWCangeDispatchProps { - return { - onForgotPassword: (email: string) => { - dispatch(asyncRequestActions.request('MemberService', 'forgotPassword', pwChangeActions.REQUEST, email)); - // dispatch(pwChangeActions.request(pass)); - }, - }; -} - -export default connect(mapStateToProps, mapDispatchToProps)(PWChange); diff --git a/src/ts/@overflow/member/react/components/ForgotPassword.tsx b/src/ts/@overflow/member/react/components/ForgotPassword.tsx deleted file mode 100644 index 84687cd..0000000 --- a/src/ts/@overflow/member/react/components/ForgotPassword.tsx +++ /dev/null @@ -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 { - constructor(props: Props, context: State) { - super(props, context); - - this.state = { - email:null, - }; - - } - - public render(): JSX.Element { - return ( -
- , data: InputOnChangeData) => { - this.setState({ email: data.value }); - }} /> - - - - - - ); - } - - private forgotPwClick(event: React.SyntheticEvent, data: ButtonProps):void { - this.props.onForgotPassword(this.state.pass); - } -} - diff --git a/src/ts/@overflow/member/react/components/SignIn.tsx b/src/ts/@overflow/member/react/components/SignIn.tsx index 59e062f..caa5563 100644 --- a/src/ts/@overflow/member/react/components/SignIn.tsx +++ b/src/ts/@overflow/member/react/components/SignIn.tsx @@ -110,8 +110,9 @@ export class SignIn extends React.Component { this.setState({ forgotPopup: false, sendComPopup: true, - }); + + // Todo Ajax } private signInClick(event: React.SyntheticEvent, data: ButtonProps):void { diff --git a/src/ts/@overflow/member/redux/action/pw_change.ts b/src/ts/@overflow/member/redux/action/pw_change.ts deleted file mode 100644 index 2028b3e..0000000 --- a/src/ts/@overflow/member/redux/action/pw_change.ts +++ /dev/null @@ -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'; - diff --git a/src/ts/@overflow/member/redux/payload/PWChangePayload.ts b/src/ts/@overflow/member/redux/payload/PWChangePayload.ts deleted file mode 100644 index ab9600a..0000000 --- a/src/ts/@overflow/member/redux/payload/PWChangePayload.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Member from '../../api/model/Member'; -interface PWChangePayload { - pass: string; -} - -export default PWChangePayload; \ No newline at end of file