member modify

This commit is contained in:
geek 2017-08-23 15:20:14 +09:00
parent ea9d52e5e5
commit db1d85e600
7 changed files with 23 additions and 23 deletions

View File

@ -88,7 +88,7 @@ export class Modify extends React.Component<Props, State> {
this.setState({ passCon: data.value });
}
} />
<Form.Input fluid placeholder='Company' value={this.props.member} onChange={
<Form.Input fluid placeholder='Company' value={this.props.member.companyName} onChange={
(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
this.setState({ company: data.value });
}
@ -98,7 +98,7 @@ export class Modify extends React.Component<Props, State> {
this.setState({ country: data.value });
}
} />
<Form.Input fluid placeholder='phone' value={this.props.member} onChange={
<Form.Input fluid placeholder='phone' value={this.props.member.phone} onChange={
(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
this.setState({ phone: data.value });
}

View File

@ -1,10 +1,10 @@
// Action Type
export type REQUEST = '@overflow/member/modify/REQUEST';
export type REQUEST_SUCCESS = '@overflow/member/modify/REQUEST_SUCCESS';
export type REQUEST_FAILURE = '@overflow/member/modify/REQUEST_FAILURE';
export type REQUEST_SUCCESS = '@overflow/member/modify/REQUEST/SUCCESS';
export type REQUEST_FAILURE = '@overflow/member/modify/REQUEST/FAILURE';
export const REQUEST: REQUEST = '@overflow/member/modify/REQUEST';
export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/member/modify/REQUEST_SUCCESS';
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/member/modify/REQUEST_FAILURE';
export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/member/modify/REQUEST/SUCCESS';
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/member/modify/REQUEST/FAILURE';

View File

@ -1,9 +1,9 @@
// 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 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';
export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/member/pw_change/REQUEST/SUCCESS';
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/member/pw_change/REQUEST/FAILURE';

View File

@ -1,9 +1,9 @@
// Action Type
export type REQUEST = '@overflow/member/pw_confirm/REQUEST';
export type REQUEST_SUCCESS = '@overflow/member/pw_confirm/REQUEST_SUCCESS';
export type REQUEST_FAILURE = '@overflow/member/pw_confirm/REQUEST_FAILURE';
export type REQUEST_SUCCESS = '@overflow/member/pw_confirm/REQUEST/SUCCESS';
export type REQUEST_FAILURE = '@overflow/member/pw_confirm/REQUEST/FAILURE';
export const REQUEST: REQUEST = '@overflow/member/pw_confirm/REQUEST';
export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/member/pw_confirm/REQUEST_SUCCESS';
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/member/pw_confirm/REQUEST_FAILURE';
export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/member/pw_confirm/REQUEST/SUCCESS';
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/member/pw_confirm/REQUEST/FAILURE';

View File

@ -1,10 +1,10 @@
// Action Type
export type REQUEST = '@overflow/member/read/REQUEST';
export type REQUEST_SUCCESS = '@overflow/member/read/REQUEST_SUCCESS';
export type REQUEST_FAILURE = '@overflow/member/read/REQUEST_FAILURE';
export type REQUEST_SUCCESS = '@overflow/member/read/REQUEST/SUCCESS';
export type REQUEST_FAILURE = '@overflow/member/read/REQUEST/FAILURE';
export const REQUEST: REQUEST = '@overflow/member/read/REQUEST';
export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/member/read/REQUEST_SUCCESS';
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/member/read/REQUEST_FAILURE';
export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/member/read/REQUEST/SUCCESS';
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/member/read/REQUEST/FAILURE';

View File

@ -1,9 +1,9 @@
// Action Type
export type REQUEST = '@overflow/member/signout/REQUEST';
export type REQUEST_SUCCESS = '@overflow/member/signout/REQUEST_SUCCESS';
export type REQUEST_FAILURE = '@overflow/member/signout/REQUEST_FAILURE';
export type REQUEST_SUCCESS = '@overflow/member/signout/REQUEST/SUCCESS';
export type REQUEST_FAILURE = '@overflow/member/signout/REQUEST/FAILURE';
export const REQUEST: REQUEST = '@overflow/member/signout/REQUEST';
export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/member/signout/REQUEST_SUCCESS';
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/member/signout/REQUEST_FAILURE';
export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/member/signout/REQUEST/SUCCESS';
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/member/signout/REQUEST/FAILURE';

View File

@ -9,7 +9,7 @@ import { ReducersMapObject } from 'redux';
import Member from '@overflow/member/api/model/Member';
import * as ReadActionTypes from '../action/read';
import ReadState, { defaultState as readDefaultState } from '../state/Modify';
import ReadState, { defaultState as readDefaultState } from '../state/Read';
const reducer: ReducersMapObject = {
[ReadActionTypes.REQUEST_SUCCESS]: (state: ReadState = readDefaultState, action: Action<Member>): ReadState => {