|
@@ -1,6 +1,6 @@
|
|
|
import React, { useState, useEffect, useRef } from "react";
|
|
import React, { useState, useEffect, useRef } from "react";
|
|
|
import { useNavigate, useLocation, Link } from "react-router-dom";
|
|
import { useNavigate, useLocation, Link } from "react-router-dom";
|
|
|
-import logo from "../assets/img/getgo.svg";
|
|
|
|
|
|
|
+// import logo from "../assets/img/getgo.svg";
|
|
|
import { useAppDispatch, useAppSelector } from "../hooks/useRedux";
|
|
import { useAppDispatch, useAppSelector } from "../hooks/useRedux";
|
|
|
import { useMutation, useQuery } from "@tanstack/react-query";
|
|
import { useMutation, useQuery } from "@tanstack/react-query";
|
|
|
import {
|
|
import {
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
import { Faq } from "../services/content/types";
|
|
import { Faq } from "../services/content/types";
|
|
|
import { DataCacheKey, staleTime } from "../global/constants";
|
|
import { DataCacheKey, staleTime } from "../global/constants";
|
|
|
import { contentApi } from "../apis/contentApi";
|
|
import { contentApi } from "../apis/contentApi";
|
|
|
|
|
+import logo from "../assets/img/logo-skysim.png";
|
|
|
|
|
|
|
|
const Header: React.FC = () => {
|
|
const Header: React.FC = () => {
|
|
|
const navigate = useNavigate();
|
|
const navigate = useNavigate();
|
|
@@ -193,7 +194,7 @@ const Header: React.FC = () => {
|
|
|
setAreasList(areas);
|
|
setAreasList(areas);
|
|
|
} else {
|
|
} else {
|
|
|
const filtered = areas.filter((area: Area) =>
|
|
const filtered = areas.filter((area: Area) =>
|
|
|
- area.coverageArea.toLowerCase().includes(query.toLowerCase()),
|
|
|
|
|
|
|
+ area.searchArea?.toLowerCase().includes(query.toLowerCase()),
|
|
|
);
|
|
);
|
|
|
setAreasList(filtered);
|
|
setAreasList(filtered);
|
|
|
}
|
|
}
|
|
@@ -769,7 +770,7 @@ const Header: React.FC = () => {
|
|
|
onClick={() => setIsMenuOpen(false)}
|
|
onClick={() => setIsMenuOpen(false)}
|
|
|
className="flex items-center space-x-1"
|
|
className="flex items-center space-x-1"
|
|
|
>
|
|
>
|
|
|
- <svg
|
|
|
|
|
|
|
+ {/* <svg
|
|
|
className="w-7 h-7 text-[#EE0434]"
|
|
className="w-7 h-7 text-[#EE0434]"
|
|
|
viewBox="0 0 24 24"
|
|
viewBox="0 0 24 24"
|
|
|
fill="currentColor"
|
|
fill="currentColor"
|
|
@@ -779,7 +780,8 @@ const Header: React.FC = () => {
|
|
|
<span className="text-xl font-black tracking-tighter">
|
|
<span className="text-xl font-black tracking-tighter">
|
|
|
<span className="text-[#EE0434]">Get</span>
|
|
<span className="text-[#EE0434]">Get</span>
|
|
|
<span className="text-[#333]">Go</span>
|
|
<span className="text-[#333]">Go</span>
|
|
|
- </span>
|
|
|
|
|
|
|
+ </span> */}
|
|
|
|
|
+ <img src={logo} alt="Sky Sim Hub Logo" className="h-12" />
|
|
|
</Link>
|
|
</Link>
|
|
|
<button
|
|
<button
|
|
|
onClick={() => setIsMenuOpen(false)}
|
|
onClick={() => setIsMenuOpen(false)}
|