2017-01-15 04:05:56 +00:00
|
|
|
import { ReducerRegistry } from '../base/redux';
|
|
|
|
|
2017-01-28 03:29:09 +00:00
|
|
|
import { DISMISS_MOBILE_APP_PROMO } from './actionTypes';
|
2017-01-15 04:05:56 +00:00
|
|
|
|
|
|
|
ReducerRegistry.register(
|
|
|
|
'features/unsupported-browser',
|
|
|
|
(state = {}, action) => {
|
|
|
|
switch (action.type) {
|
2017-01-28 03:29:09 +00:00
|
|
|
case DISMISS_MOBILE_APP_PROMO:
|
2017-01-15 04:05:56 +00:00
|
|
|
return {
|
|
|
|
...state,
|
|
|
|
|
|
|
|
/**
|
2017-01-28 03:29:09 +00:00
|
|
|
* The indicator which determines whether the React
|
|
|
|
* Component UnsupportedMobileBrowser which was rendered as
|
|
|
|
* a promotion of the mobile app on a browser was dismissed
|
|
|
|
* by the user. If unused, then we have chosen to force the
|
|
|
|
* mobile app and not allow the Web app in mobile browsers.
|
2017-01-15 04:05:56 +00:00
|
|
|
*
|
|
|
|
* @type {boolean}
|
|
|
|
*/
|
2017-01-28 03:29:09 +00:00
|
|
|
mobileAppPromoDismissed: true
|
2017-01-15 04:05:56 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
return state;
|
|
|
|
});
|