Navigation fix - margin left 0

master
Tudor Stanciu 2020-11-25 01:58:38 +02:00
parent 4611187bd7
commit 77550cbb61
1 changed files with 7 additions and 4 deletions

View File

@ -14,7 +14,7 @@ import { useTranslation } from "react-i18next";
import Flag from "react-flags";
import Navigation from "./Navigation";
const useStyles = makeStyles((theme) => ({
const useStyles = makeStyles(theme => ({
root: {
flexGrow: 1
},
@ -23,6 +23,9 @@ const useStyles = makeStyles((theme) => ({
},
title: {
flexGrow: 1
},
navigation: {
marginLeft: 0
}
}));
@ -46,7 +49,7 @@ const Header = () => {
});
}, [i18n.language]);
const handleMenu = (event) => {
const handleMenu = event => {
setAnchorEl(event.currentTarget);
};
@ -54,7 +57,7 @@ const Header = () => {
setAnchorEl(null);
};
const changeLanguage = (language) => () => {
const changeLanguage = language => () => {
if (language != i18n.language) {
i18n.changeLanguage(language);
}
@ -83,7 +86,7 @@ const Header = () => {
<MenuIcon />
</IconButton>
<Container>
<Container className={classes.navigation}>
<Typography variant="h6" className={classes.title}>
Reverse proxy
</Typography>