Skip to content

Commit

Permalink
Removed unused stuff
Browse files Browse the repository at this point in the history
Signed-off-by: Celine Pöhl <[email protected]>
  • Loading branch information
CelineMP committed Jun 3, 2024
1 parent 361adda commit 5dae2a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions frontend/src/components/MapView/MapOptions.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState } from "react";
import { Stack, MagnifyingGlass } from "@phosphor-icons/react";
//import { useState } from "react";
import { Stack } from "@phosphor-icons/react";
import "./MapOptions.css";
import { Tooltip } from "@mui/material";
//import SearchPopUp from "../PopUp/SearchPopUp";
Expand All @@ -11,10 +11,10 @@ interface MapOptionsProps {

const MapOptions: React.FC<MapOptionsProps> = ({ toggleShowSatellite }) => {
// Stores the state of if the search popup is open
const [ifOpenedDialog, setIfOpenedDialog] = useState(false);
const toggleIfOpenedDialog = () => {
setIfOpenedDialog(!ifOpenedDialog);
};
//const [ifOpenedDialog, setIfOpenedDialog] = useState(false);
// const toggleIfOpenedDialog = () => {
// setIfOpenedDialog(!ifOpenedDialog);
// };

return (
<div className="map-options-container">
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/PopUp/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const SearchBar: React.FC = () => {
filterSelectedOptions
value={null}
noOptionsText="No locations"
onChange={(event, newValue) => {
onChange={(_event, newValue) => {
if (newValue) {
const selectedLocation = {
coordinates: newValue.coordinates,
Expand All @@ -118,7 +118,7 @@ const SearchBar: React.FC = () => {
onItemSelected(selectedLocation);
}
}}
onInputChange={(event, newInputValue) => {
onInputChange={(_event, newInputValue) => {
setInputValue(newInputValue);
}}
renderInput={(params) => (
Expand Down

0 comments on commit 5dae2a6

Please sign in to comment.