change action's name to SET_NET_INFO_STATE

This commit is contained in:
Reinaldo Neto 2023-07-20 15:27:42 -03:00
parent 65346b041c
commit c1b16d05d9
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ export const APP = createRequestTypes('APP', [
'INIT_LOCAL_SETTINGS', 'INIT_LOCAL_SETTINGS',
'SET_MASTER_DETAIL', 'SET_MASTER_DETAIL',
'SET_NOTIFICATION_PRESENCE_CAP', 'SET_NOTIFICATION_PRESENCE_CAP',
'SET_INTERNET_TYPE' 'SET_NET_INFO_STATE'
]); ]);
export const MESSAGES = createRequestTypes('MESSAGES', ['REPLY_BROADCAST']); export const MESSAGES = createRequestTypes('MESSAGES', ['REPLY_BROADCAST']);
export const CREATE_CHANNEL = createRequestTypes('CREATE_CHANNEL', [...defaultTypes]); export const CREATE_CHANNEL = createRequestTypes('CREATE_CHANNEL', [...defaultTypes]);

View File

@ -70,7 +70,7 @@ export function setNotificationPresenceCap(show: boolean): ISetNotificationPrese
export function setNetInfoState(netInfoState: NetInfoStateType): ISetNetInfoState { export function setNetInfoState(netInfoState: NetInfoStateType): ISetNetInfoState {
return { return {
type: APP.SET_INTERNET_TYPE, type: APP.SET_NET_INFO_STATE,
netInfoState netInfoState
}; };
} }

View File

@ -66,7 +66,7 @@ export default function app(state = initialState, action: TActionApp): IApp {
...state, ...state,
notificationPresenceCap: action.show notificationPresenceCap: action.show
}; };
case APP.SET_INTERNET_TYPE: case APP.SET_NET_INFO_STATE:
return { return {
...state, ...state,
netInfoState: action.netInfoState netInfoState: action.netInfoState