translated menu texts

This commit is contained in:
Kalle (Sendou)
2020-10-13 13:55:43 +03:00
parent 1afd1ae3d3
commit 95efc326be
2 changed files with 11 additions and 10 deletions

View File

@@ -1183,6 +1183,7 @@
"User Search": "User Search",
"Free Agents": "Free Agents",
"Tournament Results": "Tournament Results",
"Tournaments": "Tournaments",
"Draft Cup": "Draft Cup",
"Top 500 Browser": "Top 500 Browser",
"Top 500": "Top 500",

View File

@@ -113,6 +113,10 @@ const IconNavBar = () => {
"/" +
code +
menuItems.reduce((acc, { code }) => acc + "/" + code, "");
const isActive =
location.pathname !== "/" &&
codesTogether.includes(location.pathname);
const MenuNavIcon = () => (
<Flex
flexDirection="column"
@@ -121,16 +125,12 @@ const IconNavBar = () => {
m="5px 15px"
color={textColor}
>
{location.pathname !== "/" &&
codesTogether.includes(location.pathname) ? (
<Box color={themeColorWithShade} fontSize="0.75em">
{displayName}
</Box>
) : (
<Box color={grayWithShade} fontSize="0.75em">
{displayName}
</Box>
)}
<Box
color={isActive ? themeColorWithShade : grayWithShade}
fontSize="0.75em"
>
{t(`navigation;${displayName}`)}
</Box>
<Image
src={`${process.env.PUBLIC_URL}/navIcons/${code}.png`}
h={12}