Clean up mobile changes, fixes #5

This commit is contained in:
Logan Williams
2022-03-21 17:05:05 +01:00
parent dca91ccfa0
commit 137603dfaa
3 changed files with 1 additions and 5 deletions

View File

@@ -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"));

View File

@@ -10,14 +10,13 @@ const Popup = ({
onClose,
title,
theme = "light",
isMobile = false,
children,
}) => (
<div>
<div
className={`infopopup ${isOpen ? "" : "hidden"} ${
theme === "dark" ? "dark" : "light"
} ${isMobile ? "mobile" : ""}`}
}`}
style={{ ...styles, fontSize }}
>
<div className="legend-header">

View File

@@ -66,7 +66,6 @@ const initial = {
},
},
shapes: [],
isMobile: /Mobi/.test(navigator.userAgent),
language: "en-US",
cluster: {
radius: 30,