Style improvements for mobile
This commit is contained in:
parent
c79f8b5f8b
commit
cd16f45d8e
28 changed files with 345 additions and 120 deletions
6
imports/ui/components/Utils/isMobile.js
Normal file
6
imports/ui/components/Utils/isMobile.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import isMobile from 'ismobilejs';
|
||||
|
||||
// https://github.com/ReactTraining/react-router/issues/184
|
||||
export const isHomeAndMobile = (window.location.pathname === '/' && isMobile.any);
|
||||
export const isNotHomeAndMobile = !isHomeAndMobile;
|
||||
export const isAnyMobile = isMobile.any;
|
||||
Loading…
Add table
Add a link
Reference in a new issue