diff --git a/ui/src/Components/NavBar/index.js b/ui/src/Components/NavBar/index.js index 7d9c551c5..92e617587 100644 --- a/ui/src/Components/NavBar/index.js +++ b/ui/src/Components/NavBar/index.js @@ -15,8 +15,8 @@ import { SilenceModal } from "Components/SilenceModal"; import "./index.css"; -const navbarResize = function(width, height) { - document.body.style["padding-top"] = height + 4 + "px"; +const NavbarOnResize = function(width, height) { + document.body.style["padding-top"] = `${height + 4}px`; }; const NavBar = observer( @@ -41,7 +41,7 @@ const NavBar = observer( return (