From 137603dfaafadfce1693cec1bacdddb32d2651f2 Mon Sep 17 00:00:00 2001 From: Logan Williams Date: Mon, 21 Mar 2022 17:05:05 +0100 Subject: [PATCH] Clean up mobile changes, fixes #5 --- src/components/Layout.js | 2 -- src/components/atoms/Popup.js | 3 +-- src/store/initial.js | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/Layout.js b/src/components/Layout.js index 589fd59..8d7c2f3 100644 --- a/src/components/Layout.js +++ b/src/components/Layout.js @@ -41,14 +41,12 @@ class Dashboard extends React.Component { } componentDidMount() { - // if (!this.props.app.isMobile) { this.props.actions.fetchDomain().then((domain) => this.props.actions.updateDomain({ domain, features: this.props.features, }) ); - // } // NOTE: hack to get the timeline to always show. Not entirely sure why // this is necessary. window.dispatchEvent(new Event("resize")); diff --git a/src/components/atoms/Popup.js b/src/components/atoms/Popup.js index af36306..eeea84d 100644 --- a/src/components/atoms/Popup.js +++ b/src/components/atoms/Popup.js @@ -10,14 +10,13 @@ const Popup = ({ onClose, title, theme = "light", - isMobile = false, children, }) => (
diff --git a/src/store/initial.js b/src/store/initial.js index c1c0a64..2ce9e60 100644 --- a/src/store/initial.js +++ b/src/store/initial.js @@ -66,7 +66,6 @@ const initial = { }, }, shapes: [], - isMobile: /Mobi/.test(navigator.userAgent), language: "en-US", cluster: { radius: 30,