Skip to content

Commit

Permalink
fix pr checks
Browse files Browse the repository at this point in the history
  • Loading branch information
vardanbansal-harness committed Feb 28, 2025
1 parent 1eb16f0 commit ddf70c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ui/src/context/RouterContext.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ComponentType, createContext, CSSProperties, ReactNode, useContext } from 'react'
import type { LinkProps, NavLinkProps } from 'react-router-dom'
import { ComponentType, createContext, ReactNode, useContext } from 'react'
import type { LinkProps, NavLinkProps, OutletProps } from 'react-router-dom'

import { cn } from '@utils/cn'

interface RouterContextType {
Link: ComponentType<LinkProps>
NavLink: ComponentType<NavLinkProps>
Outlet: ComponentType | null
Outlet: ComponentType<OutletProps>
navigate: (to: string, options?: { replace?: boolean }) => void
}

Expand Down Expand Up @@ -39,7 +39,7 @@ const NavLinkDefault = ({ to, children, className, style, ...props }: NavLinkPro
)
}

const OutletDefault: ComponentType<{ children?: ReactNode }> = ({ children }) => <>{children}</>
const OutletDefault: ComponentType<OutletProps> = ({ children }) => <>{children}</>

const RouterContext = createContext<RouterContextType>({
Link: LinkDefault,
Expand Down

0 comments on commit ddf70c2

Please sign in to comment.