From 3630af4a7f6f9e45c0c6ce0be89d6b31dbc542f8 Mon Sep 17 00:00:00 2001 From: Eugen Ciur Date: Sat, 6 Jul 2024 11:55:48 +0200 Subject: [PATCH] minor refactoring --- ui2/src/components/NavBar/NavBar.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ui2/src/components/NavBar/NavBar.tsx b/ui2/src/components/NavBar/NavBar.tsx index 2638f9e7c..5deeb78e3 100644 --- a/ui2/src/components/NavBar/NavBar.tsx +++ b/ui2/src/components/NavBar/NavBar.tsx @@ -94,13 +94,12 @@ function NavBar() { return } -type ResponsiveLink = ({ - isActive, - isPending -}: { +type NavLinkState = { isActive: boolean isPending: boolean -}) => JSX.Element +} + +type ResponsiveLink = ({isActive, isPending}: NavLinkState) => JSX.Element function NavLinkWithFeedback(text: string, icon: JSX.Element): ResponsiveLink { return ({isActive, isPending}) => {