{user.first_name} {user.last_name}
diff --git a/ui/src/components/Header/index.tsx b/ui/src/components/Header/index.tsx
index 6153af9..b65d02c 100644
--- a/ui/src/components/Header/index.tsx
+++ b/ui/src/components/Header/index.tsx
@@ -1,5 +1,5 @@
-import { Avatar, Box, Burger, Button, Group, Text } from '@mantine/core';
-import { useDisclosure, useToggle } from '@mantine/hooks';
+import { Autocomplete, Avatar, Box, Burger, Button, Group, Text } from '@mantine/core';
+import { useDisclosure, useMediaQuery, useToggle } from '@mantine/hooks';
import classes from './Header.module.css';
import { HeaderModal } from '@components/Header/HeaderModal.tsx';
import { notifications } from '@mantine/notifications';
@@ -18,6 +18,7 @@ export function Header() {
const { user, setUser } = useUserContext();
const [opened, { toggle }] = useDisclosure(false);
const [modalType, modalToggle] = useToggle([undefined, 'login', 'register', 'reset']);
+ const isMobile = useMediaQuery('(max-width: 768px)');
// const [active, setActive] = useState(links[0].link);
// const navItems = links.map((link) => (
@@ -130,28 +131,33 @@ export function Header() {
-
- Aviation Data
+ Aviation Data
{/**/}
{/* {navItems}*/}
{/**/}
-
- {user ? (
-
- ) : (
-
-
-
-
- )}
-
+ {!isMobile && (
+
+
+ {user ? (
+
+ ) : (
+
+
+
+
+ )}
+
+ )}
+ {isMobile && (
+
+ )}
diff --git a/ui/vite.config.ts b/ui/vite.config.ts
index 8baea26..911c70b 100644
--- a/ui/vite.config.ts
+++ b/ui/vite.config.ts
@@ -11,6 +11,7 @@ export default defineConfig({
'@assets': path.resolve(__dirname, './src/assets'),
'@components': path.resolve(__dirname, './src/components'),
'@lib': path.resolve(__dirname, './src/lib'),
+ '@tabler/icons-react': '@tabler/icons-react/dist/esm/icons/index.mjs',
}
},
server: {