File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1+ import { Cluster , Instance , Organization } from '@/lib/api.patch' ;
12import { capitalizeWords } from '@/lib/string/capitalizeWords' ;
23import { Link , useLocation , useRouteContext } from '@tanstack/react-router' ;
34import { HomeIcon } from 'lucide-react' ;
45import { useMemo } from 'react' ;
56
67export function Breadcrumbs ( ) {
78 const location = useLocation ( ) ;
8- const { organization, instance, cluster } = useRouteContext ( { strict : false } ) ;
9+ const { organization, instance, cluster } : { organization ?: Organization ; instance ?: Instance ; cluster ?: Cluster } = useRouteContext ( { strict : false } ) ;
910 const breadcrumbs = useMemo ( ( ) => {
1011 const routeHistory = location . pathname . split ( '/' )
1112 . filter ( ( x ) => x && x . length > 0 ) ;
You can’t perform that action at this time.
0 commit comments