diff --git a/frontend-react/public/locales/en/translation.json b/frontend-react/public/locales/en/translation.json index e42b7b1e9..c536560d9 100644 --- a/frontend-react/public/locales/en/translation.json +++ b/frontend-react/public/locales/en/translation.json @@ -1191,7 +1191,7 @@ "Plus Server": "Plus Server", "Profile": "Profile", "Log out": "Log out", - "Log in via Discord": "Login via Discord", + "Log in via Discord": "Log in via Discord", "Choose language": "Choose language", "Choose theme": "Choose theme", "Browser": "Browser", diff --git a/frontend-react/src/components/root/FooterWaves.tsx b/frontend-react/src/components/root/FooterWaves.tsx index b5b6e3bdb..3a75e197f 100644 --- a/frontend-react/src/components/root/FooterWaves.tsx +++ b/frontend-react/src/components/root/FooterWaves.tsx @@ -9,7 +9,7 @@ export const FooterWaves = () => { diff --git a/frontend-react/src/components/root/TopNav.tsx b/frontend-react/src/components/root/TopNav.tsx index 30459b8af..442d1175a 100644 --- a/frontend-react/src/components/root/TopNav.tsx +++ b/frontend-react/src/components/root/TopNav.tsx @@ -1,5 +1,16 @@ import { useQuery } from "@apollo/react-hooks" -import { Box, Flex, Grid, IconButton, useColorMode } from "@chakra-ui/core" +import { + Box, + Flex, + Grid, + IconButton, + Menu, + MenuButton, + MenuGroup, + MenuItem, + MenuList, + useColorMode, +} from "@chakra-ui/core" import { Link } from "@reach/router" import React, { Suspense, useContext } from "react" import { useTranslation } from "react-i18next" @@ -14,7 +25,9 @@ import ColorSelector from "./ColorSelector" import { LanguageSelector } from "./LanguageSelector" const TopNav = () => { - const { bgColor, colorMode } = useContext(MyThemeContext) + const { bgColor, colorMode, darkerBgColor, textColor } = useContext( + MyThemeContext + ) const { toggleColorMode } = useColorMode() const UserItem = () => { @@ -30,17 +43,29 @@ const TopNav = () => { ) - + //* return ( - - - + + + + + + + + {t("navigation;Profile")} + + + {t("navigation;Log out")} + + + + ) }