From 817fee61cfae710c4d8ba1fe7da33886211d30be Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Fri, 6 Nov 2020 17:14:01 -0300 Subject: [PATCH] Avoid unnecesary rerenders --- components/common/Navbar/Navbar.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/common/Navbar/Navbar.tsx b/components/common/Navbar/Navbar.tsx index c814a18b5..7b185ed5f 100644 --- a/components/common/Navbar/Navbar.tsx +++ b/components/common/Navbar/Navbar.tsx @@ -5,12 +5,8 @@ import { Logo, Container } from '@components/ui' import { Searchbar, UserNav } from '@components/common' import cn from 'classnames' import throttle from 'lodash.throttle' -interface Props { - className?: string -} -const Navbar: FC = ({ className }) => { - const rootClassName = className +const Navbar: FC = () => { const [hasScrolled, setHasScrolled] = useState(false) const handleScroll = () => {