diff --git a/components/Header/Header.tsx b/components/Header/Header.tsx index ec0d7dd9..e1cde436 100644 --- a/components/Header/Header.tsx +++ b/components/Header/Header.tsx @@ -22,7 +22,6 @@ import { IconBarrierBlock, IconChevronDown } from "@tabler/icons"; import { ColorSchemeToggle } from "../other/color-scheme-toggle"; import { SearchButton } from "../search-button/search-button"; import { OnlinePlayers } from "../online-players"; -import config from "../../config"; import ExplorerMenu from "./components/ExplorerMenu"; import LeaderboardsMenu from "./components/LeaderboardsMenu"; import { getAboutRoute, getDesktopAppRoute, getLeaderBoardRoute } from "../../src/routes"; diff --git a/components/Header/components/ExplorerMenu.tsx b/components/Header/components/ExplorerMenu.tsx index d2d06ad4..1b074445 100644 --- a/components/Header/components/ExplorerMenu.tsx +++ b/components/Header/components/ExplorerMenu.tsx @@ -1,5 +1,14 @@ -import { Anchor, Divider, Flex, Grid, Group, HoverCard, Stack, Text } from "@mantine/core"; -import config from "../../../config"; +import { + Accordion, + Anchor, + Divider, + Flex, + Grid, + Group, + HoverCard, + Stack, + Text, +} from "@mantine/core"; import { IconChevronDown } from "@tabler/icons"; import Link from "next/link"; import React from "react"; @@ -37,44 +46,71 @@ const ExplorerMenu = ({ }: { cx: (...args: any) => string; classes: Record; -}) => ( - - - - - Explorer - - - - - - - - - {explorerFactionLink("german")} - {explorerFactionLink("american")} - {explorerFactionLink("dak")} - {explorerFactionLink("british")} - - - - {/* - Other Stuff - - - Child stuff - - - - */} - - Tools - {explorerToolLink("DPS - Unit Comparison")} - - - - - -); +}) => { + const mobileView = ( + + + + + Explorer + + + + {explorerFactionLink("german")} + {explorerFactionLink("american")} + {explorerFactionLink("dak")} + {explorerFactionLink("british")} + + + + Tools + {explorerToolLink("DPS - Unit Comparison")} + + + + + + ); + + const desktopView = ( + + + + + + Explorer + + + + + + + + + {explorerFactionLink("german")} + {explorerFactionLink("american")} + {explorerFactionLink("dak")} + {explorerFactionLink("british")} + + + + + Tools + {explorerToolLink("DPS - Unit Comparison")} + + + + + + + ); + + return ( + <> + {desktopView} + {mobileView} + + ); +}; export default ExplorerMenu;