2017-02-28 03:22:32 +00:00
|
|
|
import { DISMISS_MOBILE_APP_PROMO } from './actionTypes';
|
2016-12-23 16:21:51 +00:00
|
|
|
|
|
|
|
/**
|
2017-01-28 03:29:09 +00:00
|
|
|
* Returns a Redux action which signals that the UnsupportedMobileBrowser which
|
|
|
|
* was rendered as a promotion of the mobile app on a browser was dismissed by
|
|
|
|
* the user. For example, the Web app may possibly run in Google Chrome
|
|
|
|
* on Android but we choose to promote the mobile app anyway claiming the user
|
|
|
|
* experience provided by the Web app is inferior to that of the mobile app.
|
|
|
|
* Eventually, the user may choose to dismiss the promotion of the mobile app
|
|
|
|
* and take their chances with the Web app instead. If unused, then we have
|
|
|
|
* chosen to force the mobile app and not allow the Web app in mobile browsers.
|
2016-12-23 16:21:51 +00:00
|
|
|
*
|
|
|
|
* @returns {{
|
2017-01-28 03:29:09 +00:00
|
|
|
* type: DISMISS_MOBILE_APP_PROMO
|
2016-12-23 16:21:51 +00:00
|
|
|
* }}
|
|
|
|
*/
|
2017-01-28 03:29:09 +00:00
|
|
|
export function dismissMobileAppPromo() {
|
2016-12-23 16:21:51 +00:00
|
|
|
return {
|
2017-01-28 03:29:09 +00:00
|
|
|
type: DISMISS_MOBILE_APP_PROMO
|
2016-12-23 16:21:51 +00:00
|
|
|
};
|
|
|
|
}
|