change action's name to SET_NET_INFO_STATE
This commit is contained in:
parent
65346b041c
commit
c1b16d05d9
|
@ -47,7 +47,7 @@ export const APP = createRequestTypes('APP', [
|
|||
'INIT_LOCAL_SETTINGS',
|
||||
'SET_MASTER_DETAIL',
|
||||
'SET_NOTIFICATION_PRESENCE_CAP',
|
||||
'SET_INTERNET_TYPE'
|
||||
'SET_NET_INFO_STATE'
|
||||
]);
|
||||
export const MESSAGES = createRequestTypes('MESSAGES', ['REPLY_BROADCAST']);
|
||||
export const CREATE_CHANNEL = createRequestTypes('CREATE_CHANNEL', [...defaultTypes]);
|
||||
|
|
|
@ -70,7 +70,7 @@ export function setNotificationPresenceCap(show: boolean): ISetNotificationPrese
|
|||
|
||||
export function setNetInfoState(netInfoState: NetInfoStateType): ISetNetInfoState {
|
||||
return {
|
||||
type: APP.SET_INTERNET_TYPE,
|
||||
type: APP.SET_NET_INFO_STATE,
|
||||
netInfoState
|
||||
};
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ export default function app(state = initialState, action: TActionApp): IApp {
|
|||
...state,
|
||||
notificationPresenceCap: action.show
|
||||
};
|
||||
case APP.SET_INTERNET_TYPE:
|
||||
case APP.SET_NET_INFO_STATE:
|
||||
return {
|
||||
...state,
|
||||
netInfoState: action.netInfoState
|
||||
|
|
Loading…
Reference in New Issue