Feedback not in home and email for non auth users

This commit is contained in:
vjrj 2018-02-18 20:21:26 +01:00
parent 458627f520
commit 719ea435d4
5 changed files with 18 additions and 7 deletions

View file

@ -1,7 +1,8 @@
import isMobile from 'ismobilejs';
import { isHome } from './location';
// https://github.com/ReactTraining/react-router/issues/184
export const isHomeAndMobile = (window.location.pathname === '/' && isMobile.any);
export const isHomeAndMobile = isHome() && isMobile.any;
export const isNotHomeAndMobile = !isHomeAndMobile;
export const isAnyMobile = isMobile.any;
// https://stackoverflow.com/questions/18625321/detect-webkit-browser-in-javascript