}
diff --git a/ui/src/components/Metars/index.tsx b/ui/src/components/Metars/index.tsx
index abd98e3..dc6c4a2 100644
--- a/ui/src/components/Metars/index.tsx
+++ b/ui/src/components/Metars/index.tsx
@@ -1,7 +1,7 @@
import { Metar } from '@/api/metar.types';
import dynamic from 'next/dynamic';
-export default async function Metar({ className = '' }: { className?: string }) {
+export default async function Metar() {
const Map = dynamic(() => import('@/components/Metars/MetarMap'), {
loading: () => (
@@ -12,5 +12,5 @@ export default async function Metar({ className = '' }: { className?: string })
),
ssr: false
});
- return
;
+ return
;
}
diff --git a/ui/src/components/Metars/metars.css b/ui/src/components/Metars/metars.css
new file mode 100644
index 0000000..0755991
--- /dev/null
+++ b/ui/src/components/Metars/metars.css
@@ -0,0 +1,18 @@
+/* https://stackoverflow.com/questions/55291179/how-to-overlay-content-on-react-leaflet-z-index-problem */
+.leaflet-control { z-index: 0 !important}
+.leaflet-pane { z-index: 0 !important}
+.leaflet-top, .leaflet-bottom {z-index: 0 !important}
+
+.modal {
+ user-select: none;
+}
+
+.modal .title {
+ display: flex;
+ width: 100%;
+ justify-content: space-between;
+}
+
+.modal .star {
+ cursor: pointer;
+}
\ No newline at end of file
diff --git a/ui/src/components/Topbar/index.tsx b/ui/src/components/Topbar/index.tsx
index 17df695..7b190be 100644
--- a/ui/src/components/Topbar/index.tsx
+++ b/ui/src/components/Topbar/index.tsx
@@ -4,13 +4,14 @@ import Link from 'next/link';
import { AiOutlineUser } from 'react-icons/ai';
import { useState } from 'react';
import { getAirports } from '@/api/airport';
-import { useRouter } from 'next/navigation';
+// import { useRouter } from 'next/navigation';
import { Autocomplete, Avatar } from '@mantine/core';
+import './topbar.css';
export default function Topbar() {
const [searchValue, setSearchValue] = useState('');
const [airports, setAirports] = useState<{ key: string; value: string; label: string }[]>([]);
- const router = useRouter();
+ // const router = useRouter();
async function onChange(value: string) {
setSearchValue(value);
@@ -24,28 +25,30 @@ export default function Topbar() {
);
}
- function onClick(value: string) {
- router.push(`/airport/${value}`);
- }
+ // function onClick(value: string) {
+ // router.push(`/airport/${value}`);
+ // }
return (
-