From dced537adb38b2d306cc6224c5463ced9be54001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sun, 26 Aug 2018 16:18:21 +0100 Subject: [PATCH] feat(tests): add missing navbar test for resize events --- ui/src/Components/NavBar/index.js | 8 ++++---- ui/src/Components/NavBar/index.test.js | 20 +++++++++++++++++++- 2 files changed, 23 insertions(+), 5 deletions(-) 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 (