From 4271ae3a38ae2c8bcd8561c10c89674e235230f6 Mon Sep 17 00:00:00 2001 From: DanielHabenicht Date: Sat, 31 Oct 2020 08:53:11 +0000 Subject: [PATCH 1/2] fix error dialog to map view --- src/components/CovMap.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/CovMap.tsx b/src/components/CovMap.tsx index 3e4789b9..7b2cf07f 100644 --- a/src/components/CovMap.tsx +++ b/src/components/CovMap.tsx @@ -269,7 +269,7 @@ export const CovMap = () => { }; return ( -
+
{/*{visual.name}*/} @@ -298,7 +298,10 @@ export const CovMap = () => { style={{ zIndex: 1190, touchAction: "none", + position: "absolute", }} + container={() => document.getElementById("mapParentDiv")} + BackdropProps={{ style: { position: "absolute" } }} > Date: Sat, 31 Oct 2020 08:53:26 +0000 Subject: [PATCH 2/2] remove search if no data --- src/components/FixedSearch.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/FixedSearch.tsx b/src/components/FixedSearch.tsx index a8d1b0d1..788613ce 100644 --- a/src/components/FixedSearch.tsx +++ b/src/components/FixedSearch.tsx @@ -1,5 +1,7 @@ import makeStyles from "@material-ui/core/styles/makeStyles"; import React from "react"; +import { useSelector } from "react-redux"; +import { State } from "src/state"; import { Search } from "./Search"; const useStyles = makeStyles((theme) => ({ @@ -20,12 +22,9 @@ const useStyles = makeStyles((theme) => ({ const FixedSearch = () => { const classes = useStyles(); + const datasetFound = useSelector((state: State) => state.app.datasetFound); - return ( -
- -
- ); + return
{datasetFound === false ? null : }
; }; export default FixedSearch;