Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ciur committed Jul 6, 2024
1 parent 4d7fa19 commit 3630af4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ui2/src/components/NavBar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,12 @@ function NavBar() {
return <NavBarFull />
}

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}) => {
Expand Down

0 comments on commit 3630af4

Please sign in to comment.