From f94f2b4a2664433ff4651b0b1b6d281fe3220efd Mon Sep 17 00:00:00 2001 From: b5 Date: Wed, 30 Sep 2020 10:36:53 -0400 Subject: [PATCH] fix(NavTopbar): use 'NavTopbar' as component name --- app/components/nav/NavTopbar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/nav/NavTopbar.tsx b/app/components/nav/NavTopbar.tsx index 74b68886..fac15156 100644 --- a/app/components/nav/NavTopbar.tsx +++ b/app/components/nav/NavTopbar.tsx @@ -14,7 +14,7 @@ import HeaderColumnButtonDropdown from '../chrome/HeaderColumnButtonDropdown' import { Modal, ModalType } from '../../models/modals' // RouteProps includes `history`, `location`, and `match` -interface NavbarProps extends RouteProps { +interface NavTopbarProps extends RouteProps { title: string buttons: NavbarButtonProps[] setModal: (modal: Modal) => void @@ -33,7 +33,7 @@ export interface NavbarButtonProps { } // Navbar is persistent chrome from app-wide navigation -export const NavbarComponent: React.FunctionComponent = ({ title, location, setModal, history, buttons = [] }) => { +export const NavTopbar: React.FunctionComponent = ({ title, location, setModal, history, buttons = [] }) => { const handleOnEnter = (e: React.KeyboardEvent) => { setModal({ q: e.target.value, type: ModalType.Search }) } @@ -67,7 +67,7 @@ export const NavbarComponent: React.FunctionComponent = ({ title, l } export default connectComponentToPropsWithRouter( - NavTopbarComponent, + NavTopbar, {}, { setModal } )