24 lines
619 B
JavaScript
24 lines
619 B
JavaScript
|
import { ReducerRegistry } from '../base/redux';
|
||
|
|
||
|
import { LANDING_IS_SHOWN } from './actionTypes';
|
||
|
|
||
|
ReducerRegistry.register(
|
||
|
'features/unsupported-browser',
|
||
|
(state = {}, action) => {
|
||
|
switch (action.type) {
|
||
|
case LANDING_IS_SHOWN:
|
||
|
return {
|
||
|
...state,
|
||
|
|
||
|
/**
|
||
|
* Flag that shows that mobile landing is shown.
|
||
|
*
|
||
|
* @type {boolean}
|
||
|
*/
|
||
|
landingIsShown: true
|
||
|
};
|
||
|
}
|
||
|
|
||
|
return state;
|
||
|
});
|