From 0e7a9ba140a551bb28279df93c43ea477efa8a9b Mon Sep 17 00:00:00 2001 From: Minotriz02 Date: Thu, 14 Nov 2024 10:53:22 -0500 Subject: [PATCH] AC-259 minos issues fixed --- src/package-lock.json | 11 ++ src/package.json | 1 + src/src/components/searchBar/SearchBar.css | 5 +- src/src/components/searchBar/SearchBar.js | 8 +- .../components/weatherChart/WeatherChart.js | 7 +- src/src/pages/dashboard/Dashboard.js | 114 +++++++++++------- src/src/pages/station/Station.js | 1 + 7 files changed, 96 insertions(+), 51 deletions(-) diff --git a/src/package-lock.json b/src/package-lock.json index e6f4fa9..a5ff703 100644 --- a/src/package-lock.json +++ b/src/package-lock.json @@ -15,6 +15,7 @@ "axios": "^1.7.7", "bootstrap": "^5.3.3", "chart.js": "^4.4.4", + "jquery": "^3.7.1", "leaflet": "^1.9.4", "react": "^18.3.1", "react-bootstrap": "^2.10.4", @@ -12295,6 +12296,11 @@ "jiti": "bin/jiti.js" } }, + "node_modules/jquery": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", + "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==" + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -27314,6 +27320,11 @@ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.6.tgz", "integrity": "sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==" }, + "jquery": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", + "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==" + }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", diff --git a/src/package.json b/src/package.json index eb32339..a40cc32 100644 --- a/src/package.json +++ b/src/package.json @@ -11,6 +11,7 @@ "axios": "^1.7.7", "bootstrap": "^5.3.3", "chart.js": "^4.4.4", + "jquery": "^3.7.1", "leaflet": "^1.9.4", "react": "^18.3.1", "react-bootstrap": "^2.10.4", diff --git a/src/src/components/searchBar/SearchBar.css b/src/src/components/searchBar/SearchBar.css index 96fb8bb..e0e64dc 100644 --- a/src/src/components/searchBar/SearchBar.css +++ b/src/src/components/searchBar/SearchBar.css @@ -10,8 +10,9 @@ width: 320px; } } -.stations-search{ - width: 95vw; +.stations-search { + width: 100%; + z-index: 2000; } .bar-hints { diff --git a/src/src/components/searchBar/SearchBar.js b/src/src/components/searchBar/SearchBar.js index 12f0615..3b236c5 100644 --- a/src/src/components/searchBar/SearchBar.js +++ b/src/src/components/searchBar/SearchBar.js @@ -2,7 +2,7 @@ import { IconSearch, IconRouter } from "@tabler/icons-react"; import React, { useState } from "react"; import "./SearchBar.css"; -function SearchBar({ stations, onStationClick, bigSize, dashboard }) { +function SearchBar({ stations, onStationClick, bigSize, dashboard, onMap }) { const [filterText, setFilterText] = useState(""); const [selectedStation, setSelectedStation] = useState(null); @@ -30,7 +30,11 @@ function SearchBar({ stations, onStationClick, bigSize, dashboard }) { }; return ( -
+
{title}