Flow, coding style
This commit is contained in:
parent
122be9e0e0
commit
da03b49754
|
@ -1,3 +1,5 @@
|
||||||
|
// @flow
|
||||||
|
|
||||||
import { equals, set, ReducerRegistry } from '../redux';
|
import { equals, set, ReducerRegistry } from '../redux';
|
||||||
|
|
||||||
import { SET_CALL_OVERLAY_VISIBLE, SET_JWT } from './actionTypes';
|
import { SET_CALL_OVERLAY_VISIBLE, SET_JWT } from './actionTypes';
|
||||||
|
@ -7,6 +9,7 @@ import { SET_CALL_OVERLAY_VISIBLE, SET_JWT } from './actionTypes';
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @type {{
|
* @type {{
|
||||||
|
* callOverlayVisible: ?boolean
|
||||||
* isGuest: boolean
|
* isGuest: boolean
|
||||||
* }}
|
* }}
|
||||||
*/
|
*/
|
||||||
|
@ -38,7 +41,8 @@ const _INITIAL_STATE = {
|
||||||
* specified {@code action}.
|
* specified {@code action}.
|
||||||
*/
|
*/
|
||||||
ReducerRegistry.register(
|
ReducerRegistry.register(
|
||||||
'features/base/jwt', (state = _INITIAL_STATE, action) => {
|
'features/base/jwt',
|
||||||
|
(state = _INITIAL_STATE, action) => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case SET_CALL_OVERLAY_VISIBLE:
|
case SET_CALL_OVERLAY_VISIBLE:
|
||||||
return set(state, 'callOverlayVisible', action.callOverlayVisible);
|
return set(state, 'callOverlayVisible', action.callOverlayVisible);
|
||||||
|
|
Loading…
Reference in New Issue