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