diff --git a/package.json b/package.json index e04491f..f4526e9 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "object-hash": "^1.3.0", "ramda": "^0.26.1", "react": "^16.6.3", + "react-device-detect": "^1.6.2", "react-dom": "^16.6.3", "react-image": "^1.5.1", "react-portal": "^4.2.0", diff --git a/src/components/Dashboard.jsx b/src/components/Dashboard.jsx index 3f971f8..133b744 100644 --- a/src/components/Dashboard.jsx +++ b/src/components/Dashboard.jsx @@ -18,6 +18,8 @@ import DefaultCover from './presentational/covers/Default' import { parseDate } from '../js/utilities' +import { isMobile } from 'react-device-detect' + class Dashboard extends React.Component { constructor (props) { super(props) @@ -95,6 +97,24 @@ class Dashboard extends React.Component { render () { const { actions, app, domain, ui } = this.props + if (isMobile || window.innerWidth < 1000) { + return ( +