ing
This commit is contained in:
parent
2056461b7d
commit
c7a8f0aa3b
0
src/ts/app/router/index.tsx
Normal file
0
src/ts/app/router/index.tsx
Normal file
|
@ -13,3 +13,15 @@ abstract class Service {
|
|||
}
|
||||
|
||||
export default Service;
|
||||
|
||||
|
||||
|
||||
export function dService(...methodNames: string[]): Function {
|
||||
return function(owner: any, methodName?: string): void {
|
||||
if (!owner.prototype) {
|
||||
handleActionReducer(owner, methodName);
|
||||
return;
|
||||
}
|
||||
handleRootReducer(owner, methodNames);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@ export class MemberService extends Service {
|
|||
this.send('signin');
|
||||
return null;
|
||||
}
|
||||
|
||||
public signout(member: Member): Member {
|
||||
|
||||
return null;
|
||||
|
|
|
@ -22,7 +22,7 @@ const apiSignin = (signinId: string, signinPw: string): Promise<Member> => {
|
|||
});
|
||||
};
|
||||
|
||||
function* signin(action: Action<SigninPayload>): Iterable<Effect> {
|
||||
function* signin(action: Action<SigninPayload>): SagaIterator {
|
||||
try {
|
||||
const {signinId, signinPw} = action.payload;
|
||||
// yield put({
|
||||
|
@ -46,6 +46,6 @@ function* signin(action: Action<SigninPayload>): Iterable<Effect> {
|
|||
}
|
||||
}
|
||||
|
||||
export function* watchSignin(): Iterable<SagaIterator> {
|
||||
yield takeLatest(actionTypes.REQUEST, signin);
|
||||
export function* watchSignin(): SagaIterator {
|
||||
yield takeLatest(SigninActions.REQUEST, signin);
|
||||
}
|
||||
|
|
0
src/ts/member/redux/selector/index.ts
Normal file
0
src/ts/member/redux/selector/index.ts
Normal file
|
@ -1,14 +0,0 @@
|
|||
import * as React from 'react';
|
||||
import { RouteComponentProps } from 'react-router';
|
||||
import SigninContainer from './containers/Signin';
|
||||
|
||||
class Signin extends React.Component<RouteComponentProps<object>, object> {
|
||||
public render(): JSX.Element {
|
||||
return (
|
||||
<SigninContainer/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export default Signin;
|
Loading…
Reference in New Issue
Block a user